EA-20030 NPE fix
authorKonstantin Bulenkov <kb@jetbrains.com>
Wed, 14 Apr 2010 15:33:30 +0000 (19:33 +0400)
committerKonstantin Bulenkov <kb@jetbrains.com>
Wed, 14 Apr 2010 15:33:30 +0000 (19:33 +0400)
platform/platform-api/src/com/intellij/util/OpenSourceUtil.java

index 50cef3380f9e507c373e2440dc69985ddb58c1b3..f85f2babbe79065c0b6843997bca929af793da36 100644 (file)
@@ -45,6 +45,7 @@ public class OpenSourceUtil {
   }
 
   public static void navigate(final boolean requestFocus, final Navigatable...navigatables) {
+    if (navigatables == null) return;
     for (Navigatable navigatable : navigatables) {
       if (navigatable.canNavigate()) {
         navigatable.navigate(requestFocus);