Skip to content

Commit

Permalink
Protocol fixing when parsing old grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelbey committed Nov 24, 2024
1 parent ec991d6 commit 8ec8a9c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ else if (node.get("genericType") != null)
variable.genericType = om.treeToValue(node.get("genericType"), GenericType.class);

// Backward compatibility - old grammar -------------------------------------------------------------------
if (variable.genericType.rawType instanceof PackageableType)
if (variable.genericType != null && variable.genericType.rawType instanceof PackageableType)
{
String _class = ((PackageableType) variable.genericType.rawType).fullPath;
if (("meta::pure::mapping::Result".equals(_class) || "Result".equals(_class)) && variable.genericType.typeArguments.size() == 0)
Expand Down

0 comments on commit 8ec8a9c

Please sign in to comment.