Skip to content

Commit

Permalink
Fixing NullPointerException rising in isComplexType() using type.getS…
Browse files Browse the repository at this point in the history
…uperClass() for Enums while using OpenClover
  • Loading branch information
poikilotherm authored and f-lopes committed Apr 9, 2018
1 parent 81d844d commit 4981c32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -209,4 +209,4 @@
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
</project>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ private static boolean isComplexType(Class<?> type) {
&& !String.class.isAssignableFrom(type)
&& !Date.class.isAssignableFrom(type)
&& !Temporal.class.isAssignableFrom(type)
&& type.getSuperclass() != null
&& !Enum.class.isAssignableFrom(type.getSuperclass());
}

Expand Down

0 comments on commit 4981c32

Please sign in to comment.