From cb199004a35ee04d4727f466112adcc65ed7d0d4 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 3 Sep 2011 05:36:12 +0200 Subject: Fix PCPP/DumpCPP: Avoid NPE ; More descriptive exception in case of non integer opaque in struct --- src/java/com/jogamp/gluegen/pcpp/PCPP.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/java/com/jogamp/gluegen/pcpp') diff --git a/src/java/com/jogamp/gluegen/pcpp/PCPP.java b/src/java/com/jogamp/gluegen/pcpp/PCPP.java index 45a92df..59807b2 100644 --- a/src/java/com/jogamp/gluegen/pcpp/PCPP.java +++ b/src/java/com/jogamp/gluegen/pcpp/PCPP.java @@ -319,11 +319,11 @@ public class PCPP { } private String filename() { - return state.filename(); + return (null != state) ? state.filename() : null; } private int lineNumber() { - return state.lineNumber(); + return (null != state) ? state.lineNumber() : -1; } ///////////// -- cgit v1.2.3