-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WINDUP-447: NPE halts Windup execution #412
Conversation
There is no unit test as I was unable to reproduce the issue. However, the code below logs a warning in this case and allows execution to proceed.
Merged build triggered. |
1 similar comment
Merged build triggered. |
@@ -60,6 +60,10 @@ public Object exec(@SuppressWarnings("rawtypes") List arguments) throws Template | |||
throw new TemplateModelException("Error, method expects one argument (ProjectModel)"); | |||
} | |||
StringModel stringModelArg = (StringModel) arguments.get(0); | |||
if (stringModelArg == null) | |||
{ | |||
throw new IllegalArgumentException("FreeMarker Method " + NAME + " called with null project model"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this print which template this was found in?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would be great, but I don't think I have any way of knowing that. :(
WINDUP-447: NPE halts Windup execution
Merged build started. |
Merged build finished. Test FAILed. |
Test FAILed. |
https://issues.jboss.org/browse/WINDUP-447