aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/gluegen
diff options
context:
space:
mode:
authorWade Walker <[email protected]>2018-12-26 11:00:04 -0600
committerSven Gothel <[email protected]>2019-08-16 23:58:44 +0200
commit3ae05eacc091282f009792e2b06505efe96cca7d (patch)
treedff28efe1152c4a72f1ad89378919f6fb971aacd /src/java/com/jogamp/gluegen
parent610493b1724b5d91327f478338ff5d029bdcc032 (diff)
Fixed null pointer exception in logging print
Diffstat (limited to 'src/java/com/jogamp/gluegen')
-rw-r--r--src/java/com/jogamp/gluegen/structgen/CStructAnnotationProcessor.java5
1 files changed, 4 insertions, 1 deletions
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 <unnamed modules have no package>");
} else {
System.err.println("");
}