Check for NullPointer in SyntheticAnalyzer. Based on

patch suggessted by Peter Klauser (klp at users.sf.net).


git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1393 379699f6-c40d-0410-875b-85095c16579e
master
hoenicke 19 years ago
parent 4ff081adef
commit 000cbe01e8
  1. 9
      jode/ChangeLog
  2. 6
      jode/src/net/sf/jode/jvm/SyntheticAnalyzer.java

@ -1,3 +1,12 @@
2005-09-13 Jochen Hoenicke <jochen@gnu.org>
Check for NullPointer in SyntheticAnalyzer. Based on
patch suggessted by Peter Klauser (klp at users.sf.net).
* src/net/sf/jode/jvm/SyntheticAnalyzer.java:
(checkStaticAccess): Check refField for null pointer.
(checkAccess): Likewise.
2004-08-06 Jochen Hoenicke <hoenicke@marge.Informatik.Uni-Oldenburg.DE>
* src/net/sf/jode/bytecode/BinaryInfo.java (ACC_*): added

@ -231,7 +231,8 @@ public class SyntheticAnalyzer implements Opcodes {
}
FieldInfo refField
= refClazz.findField(ref.getName(), ref.getType());
if ((refField.getModifiers() & modifierMask) != 0)
if (refField == null
|| (refField.getModifiers() & modifierMask) != 0)
return false;
if (!iter.hasNext())
return false;
@ -274,7 +275,8 @@ public class SyntheticAnalyzer implements Opcodes {
}
FieldInfo refField
= refClazz.findField(ref.getName(), ref.getType());
if ((refField.getModifiers() & modifierMask) != 0)
if (refField == null
|| (refField.getModifiers() & modifierMask) != 0)
return false;
if (dupSeen) {
if (!iter.hasNext())

Loading…
Cancel
Save