Cheaterman03 / doclava

Automatically exported from code.google.com/p/doclava
Apache License 2.0
0 stars 0 forks source link

com.google.doclava.ClassInfo should never allow mEnumConstants to be null (patch included) #40

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. generate javadoc for jdk 1.5 source
2. fails with a NPE on ClassInfo line 1043 (attempting to iterate over a null 
list)
3. this is caused when a ClassInfo object is instantiated via the reflection 
API; the mEnumConstants member is never assigned a value

To patch this, change line 1143 of ClassInfo.java to:

private List<FieldInfo> mEnumConstants = new ArrayList<FieldInfo>();

Original issue reported on code.google.com by matthew....@gmail.com on 5 Jun 2011 at 6:18