Skip to content

Commit

Permalink
Fixed possible nullpointerexception.
Browse files Browse the repository at this point in the history
  • Loading branch information
hiohiohio committed Aug 31, 2014
1 parent 8264cce commit 99729b0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ public List<ExternalFinderItem> load() {
for (int i = 0, n = nodeList.getLength(); i < n; i++) {
ExternalFinderItem finderItem = generateFinderItem(nodeList.item(i));

if (finderItem.getName() != null && !finderItem.getName().isEmpty()
if (finderItem != null
&& finderItem.getName() != null
&& !finderItem.getName().isEmpty()
&& !finderItems.contains(finderItem)) {
finderItems.add(finderItem);
}
Expand Down

0 comments on commit 99729b0

Please sign in to comment.