Skip to content
Browse files

fixed BYTEMAN-222

  • Loading branch information...
1 parent f8ec601 commit cfcf00f60d68f43006dec15a911e1ad358328d48 @adinn adinn committed Oct 11, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 agent/src/main/java/org/jboss/byteman/agent/check/LoadCache.java
View
5 agent/src/main/java/org/jboss/byteman/agent/check/LoadCache.java
@@ -53,6 +53,11 @@ public LoadCache(Instrumentation inst)
public Class lookupClass(String name, ClassLoader baseLoader)
{
+ // if we get used by the offline type checker inst will be null so fail quick without an NPE
+ if (inst == null) {
+ return null;
+ }
+
HashMap<String, Class> baseLoaderMap = null;
Class clazz;

0 comments on commit cfcf00f

Please sign in to comment.
Something went wrong with that request. Please try again.