Revision: 2318
http://svn.sourceforge.net/rubyeclipse/?rev=2318&view=rev
Author: cawilliams
Date: 2007-04-15 07:33:23 -0700 (Sun, 15 Apr 2007)
Log Message:
-----------
check for null to avoid null pointers
Modified Paths:
--------------
branches/search_engine/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/search/indexing/AddExternalFolderToIndex.java
Modified: branches/search_engine/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/search/indexing/AddExternalFolderToIndex.java
===================================================================
--- branches/search_engine/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/search/indexing/AddExternalFolderToIndex.java 2007-04-14 14:34:33 UTC (rev 2317)
+++ branches/search_engine/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/search/indexing/AddExternalFolderToIndex.java 2007-04-15 14:33:23 UTC (rev 2318)
@@ -164,6 +164,7 @@
private void addDirectorysChildren(File file, String EXISTS, SimpleLookupTable indexedFileNames) {
File[] children = file.listFiles();
+ if (children == null) return;
for (int i = 0; i < children.length; i++) {
String name = children[i].getName();
if (Util.isRubyLikeFileName(name)) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|