Skip to content

Commit

Permalink
[lang] Avoid NPE in action prototype provider.
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Feb 21, 2017
1 parent f3285fb commit 9db3d71
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -180,7 +180,8 @@ private Map<ActionParameterTypes, List<InferredStandardParameter>> buildSignatur
if (parameters != null) {
for (int i = 0; i < parameters.size(); ++i) {
if (!Strings.isNullOrEmpty(annotationValues[i])) {
parameters.get(i).setDefaultValueAnnotationValue(annotationValues[i]);
parameters.get(i).setDefaultValueAnnotationValue(annotationValues[i],
annotationValues[i].substring(annotationValues[i].lastIndexOf("#") + 1)); //$NON-NLS-1$
}
}
}
Expand Down

0 comments on commit 9db3d71

Please sign in to comment.