diff options
author | Sven Gothel <[email protected]> | 2011-09-03 05:36:12 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-09-03 05:36:12 +0200 |
commit | cb199004a35ee04d4727f466112adcc65ed7d0d4 (patch) | |
tree | c420ba18e5d0dd3933d38c822b109823f2ffd59e /src/java/com/jogamp/gluegen/pcpp | |
parent | cfb9e118e020707842e6b5136b07f5ab149540c1 (diff) |
Fix PCPP/DumpCPP: Avoid NPE ; More descriptive exception in case of non integer opaque in struct
Diffstat (limited to 'src/java/com/jogamp/gluegen/pcpp')
-rw-r--r-- | src/java/com/jogamp/gluegen/pcpp/PCPP.java | 4 |
1 files changed, 2 insertions, 2 deletions
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; } ///////////// |