EA-69638 - IAE: ClassUtil.getJVMClassName
[idea/community.git] / java / debugger / impl / src / com / intellij / debugger / engine / JVMNameUtil.java
index 0f1fb88734a14c4341f2ba17eede8537c39db4e0..85d181a4b20bc91f8d42bd4d0f46b3334fac5335 100644 (file)
@@ -475,7 +475,8 @@ public class JVMNameUtil {
   }
 
   @Nullable
-  public static String getClassVMName(PsiClass containingClass) {
+  public static String getClassVMName(@Nullable PsiClass containingClass) {
+    if (containingClass == null) return null;
     if (containingClass instanceof PsiAnonymousClass) {
       return getClassVMName(PsiTreeUtil.getParentOfType(containingClass, PsiClass.class)) +
              JavaAnonymousClassesHelper.getName((PsiAnonymousClass)containingClass);