From 3ae05eacc091282f009792e2b06505efe96cca7d Mon Sep 17 00:00:00 2001 From: Wade Walker Date: Wed, 26 Dec 2018 11:00:04 -0600 Subject: Fixed null pointer exception in logging print --- .../com/jogamp/gluegen/structgen/CStructAnnotationProcessor.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/java/com/jogamp/gluegen/structgen/CStructAnnotationProcessor.java b/src/java/com/jogamp/gluegen/structgen/CStructAnnotationProcessor.java index 497e9ff..2fc0766 100644 --- a/src/java/com/jogamp/gluegen/structgen/CStructAnnotationProcessor.java +++ b/src/java/com/jogamp/gluegen/structgen/CStructAnnotationProcessor.java @@ -178,7 +178,10 @@ public class CStructAnnotationProcessor extends AbstractProcessor { 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 "); } else { System.err.println(""); } -- cgit v1.2.3