fixed NPE.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4173 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-08-10 04:15:44 +00:00
1 parent bf72c00d58
commit 021c759034
1 file changed
+3 -1
@@ -146,7 +146,9 @@ final class ParsedQuickSilver {
}
public SearchIndex getSearchIndex() {
return ((SearchableModelObject)getter.get(instance)).getSearchIndex();
Object child = getter.get(instance);
if(child==null) return SearchIndex.EMPTY;
return ((SearchableModelObject) child).getSearchIndex();
}
});
}