mirror of https://github.com/dspinellis/UMLGraph
Merge pull request #12 from CyrilDeverson/master
Fix a NullPointerException
This commit is contained in:
commit
f517c8704e
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue