Skip to content
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

Merged
merged 1 commit into from
Jan 15, 2015

Conversation

jsight
Copy link
Member

@jsight jsight commented Jan 15, 2015

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.
@windupgithubbot1
Copy link

Merged build triggered.

1 similar comment
@windupgithubbot1
Copy link

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");
Copy link
Contributor

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?

Copy link
Member Author

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. :(

lincolnthree added a commit that referenced this pull request Jan 15, 2015
WINDUP-447: NPE halts Windup execution
@lincolnthree lincolnthree merged commit 062f8e3 into windup:master Jan 15, 2015
@windupgithubbot1
Copy link

Merged build started.

@windupgithubbot1
Copy link

Merged build finished. Test FAILed.

@windupgithubbot1
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://10.3.9.192//job/windup-pr-builder/364/
Test FAILed.

@jsight jsight deleted the WINDUP-447 branch February 12, 2015 21:30
PhilipCattanach pushed a commit to PhilipCattanach/windup that referenced this pull request Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants