Skip to content

Commit

Permalink
fix #2277 sc command throws NPE. (#2308)
Browse files Browse the repository at this point in the history
  • Loading branch information
pandaapo authored Oct 14, 2022
1 parent 019c55d commit 55e3a6e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ private static Set<Class<?>> filter(Set<Class<?>> matchedClasses, String code) {
Set<Class<?>> result = new HashSet<Class<?>>();
if (matchedClasses != null) {
for (Class<?> c : matchedClasses) {
if (Integer.toHexString(c.getClassLoader().hashCode()).equals(code)) {
if (c.getClassLoader() != null && Integer.toHexString(c.getClassLoader().hashCode()).equals(code)) {
result.add(c);
}
}
Expand Down

0 comments on commit 55e3a6e

Please sign in to comment.