felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dsav...@apache.org
Subject svn commit: r917456 - /felix/trunk/sigil/eclipse/search/src/org/apache/felix/sigil/search/SigilSearch.java
Date Mon, 01 Mar 2010 10:40:01 GMT
Author: dsavage
Date: Mon Mar  1 10:40:01 2010
New Revision: 917456

URL: http://svn.apache.org/viewvc?rev=917456&view=rev
Log:
tidy up npe when system bundle does not have framework bundle set (FELIX-2143)

Modified:
    felix/trunk/sigil/eclipse/search/src/org/apache/felix/sigil/search/SigilSearch.java

Modified: felix/trunk/sigil/eclipse/search/src/org/apache/felix/sigil/search/SigilSearch.java
URL: http://svn.apache.org/viewvc/felix/trunk/sigil/eclipse/search/src/org/apache/felix/sigil/search/SigilSearch.java?rev=917456&r1=917455&r2=917456&view=diff
==============================================================================
--- felix/trunk/sigil/eclipse/search/src/org/apache/felix/sigil/search/SigilSearch.java (original)
+++ felix/trunk/sigil/eclipse/search/src/org/apache/felix/sigil/search/SigilSearch.java Mon
Mar  1 10:40:01 2010
@@ -163,9 +163,14 @@
                     if ( bundle.isSynchronized() )
                     {
                         IPath loc = bundle.getLocation();
-                        if ( loc.isAbsolute() )
-                        {
-                            indexJar( rep, bundle, loc );
+                        if ( loc == null ) {
+                            SigilCore.error("Location is null for " + bundle);
+                        }
+                        else {
+                            if ( loc.isAbsolute() )
+                            {
+                                indexJar( rep, bundle, loc );
+                            }
                         }
                     }
                 }
@@ -193,8 +198,7 @@
         }
         catch ( JavaModelException e )
         {
-            // TODO Auto-generated catch block
-            e.printStackTrace();
+            SigilCore.error( "Failed to index project", e);
         }
     }
 



Mime
View raw message