Skip to content

Commit

Permalink
EXTSCRIPT-183 removing an npe
Browse files Browse the repository at this point in the history
  • Loading branch information
werpu committed Dec 4, 2012
1 parent 04b2602 commit 734b9c0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ public CDIThrowAwayClassloader()
public Class<?> loadClass(String className) throws ClassNotFoundException
{
ClassResource res = (ClassResource) WeavingContext.getInstance().getResource(className);
boolean tainted = res.isTainted();

Class clazz = _delegate.loadClass(className);
if (res == null)
{
return clazz;
}

boolean tainted = res.isTainted();
Annotation[] anns = clazz.getAnnotations();
boolean cdiAnnotation = false;
//@Named required without named no cdi bean
Expand Down

0 comments on commit 734b9c0

Please sign in to comment.