Merge pull request #12 from CyrilDeverson/master

Fix a NullPointerException
This commit is contained in:
Diomidis Spinellis 2013-05-23 08:26:11 -07:00
commit f517c8704e
1 changed files with 1 additions and 1 deletions

View File

@ -972,7 +972,7 @@ class ClassGraph {
private Type[] getInterfaceTypeArguments(ClassDoc iface, Type t) {
if (t instanceof ParameterizedType) {
ParameterizedType pt = (ParameterizedType) t;
if (iface.equals(t.asClassDoc())) {
if (iface != null && iface.equals(t.asClassDoc())) {
return pt.typeArguments();
} else {
for (Type pti : pt.interfaceTypes()) {