I got this code in my macro.
page = pageManager.getPage(spaceKey, pageTitle);
The values spaceKey and pageTitle come from the macro's parameters, i don't want to make them required so i need to manipulate possible errors.
Thanks!
Community moderators have prevented the ability to post new answers.
Hi Javier,
no exception will be thrown, if a page is not found. You need to check, if the method returns null.
Best regards,
Robert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.