Skip to content

Commit

Permalink
Fixed null pointer exception in logging print
Browse files Browse the repository at this point in the history
  • Loading branch information
WadeWalker authored and sgothel committed Aug 16, 2019
1 parent 610493b commit 3ae05ea
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,10 @@ private void processCStruct(final CStruct struct, final Element element, final S
System.err.println("CStruct.0: element: "+element+", .simpleName "+element.getSimpleName());
System.err.print("CStruct.0: isPackageOrType "+isPackageOrType+", enclElement: "+enclElement);
if( !isPackageOrType ) {
System.err.println(", .simpleName "+enclElement.getSimpleName()+", .package "+eltUtils.getPackageOf(enclElement).toString());
if(!enclElement.toString().equals("unnamed module"))
System.err.println(", .simpleName "+enclElement.getSimpleName()+", .package "+eltUtils.getPackageOf(enclElement).toString());
else
System.err.println(", .simpleName "+enclElement.getSimpleName()+", .package <unnamed modules have no package>");
} else {
System.err.println("");
}
Expand Down

0 comments on commit 3ae05ea

Please sign in to comment.