EA-33101 - NPE: SharedPsiElementImplUtil.addReferences
authoranna <Anna.Kozlova@jetbrains.com>
Thu, 19 Jan 2012 20:41:17 +0000 (21:41 +0100)
committeranna <Anna.Kozlova@jetbrains.com>
Thu, 19 Jan 2012 20:41:17 +0000 (21:41 +0100)
platform/core-impl/src/com/intellij/psi/impl/SharedPsiElementImplUtil.java

index 1fd242f2607cc114bf06ad37cfc78b95c8062b73..d1a6b81e1a9aec1698723ac380996a96d6f59061 100644 (file)
@@ -69,7 +69,7 @@ public class SharedPsiElementImplUtil {
         LOG.error(element);
       }
       for (TextRange range : ReferenceRange.getRanges(reference)) {
-        assert range != null : reference;
+        LOG.assertTrue(range != null, reference);
         if (range.containsOffset(offset)) {
           outReferences.add(reference);
         }