From 4fdda72fcecfb4c52232a65365514bfab59af9c8 Mon Sep 17 00:00:00 2001 From: Oleg Shpynov Date: Wed, 22 Sep 2010 11:39:53 +0400 Subject: [PATCH] RUBY-6798 undefined method `get_name' for nil:NilClass - match :to call --- .../src/com/intellij/ide/util/gotoByName/ChooseByNameBase.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/ide/util/gotoByName/ChooseByNameBase.java b/platform/lang-impl/src/com/intellij/ide/util/gotoByName/ChooseByNameBase.java index 02a9ae9f8470..79743de0ab71 100644 --- a/platform/lang-impl/src/com/intellij/ide/util/gotoByName/ChooseByNameBase.java +++ b/platform/lang-impl/src/com/intellij/ide/util/gotoByName/ChooseByNameBase.java @@ -1194,7 +1194,8 @@ public abstract class ChooseByNameBase { if (myCancelled) { throw new ProcessCanceledException(); } - Collections.sort(namesList, new MatchesComparator(pattern)); + // Here we sort using namePattern to have similar logic with empty qualified patten case + Collections.sort(namesList, new MatchesComparator(namePattern)); boolean overflow = false; List sameNameElements = new SmartList();