Check for "system bundle" vs null after change made in FELIX-2133

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@917478 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/sigil/ivy/resolver/src/org/apache/felix/sigil/ivy/SigilParser.java b/sigil/ivy/resolver/src/org/apache/felix/sigil/ivy/SigilParser.java
index a215202..52701e7 100644
--- a/sigil/ivy/resolver/src/org/apache/felix/sigil/ivy/SigilParser.java
+++ b/sigil/ivy/resolver/src/org/apache/felix/sigil/ivy/SigilParser.java
@@ -69,19 +69,22 @@
 
 
     // used by ProjectRepository
-    static DelegateParser instance()
+    static synchronized DelegateParser instance()
     {
         if ( instance == null )
             throw new IllegalStateException( "SigilParser is not instantiated." );
+        
         return instance;
     }
 
 
     public SigilParser()
     {
-        if ( instance == null )
-        {
-            instance = new DelegateParser();
+        synchronized(SigilParser.class) {
+            if ( instance == null )
+            {
+                instance = new DelegateParser();
+            }
         }
     }
 
@@ -530,7 +533,7 @@
                 IBundleModelElement info = bundle.getBundleInfo();
                 String name = info.getSymbolicName();
 
-                if ( name == null )
+                if ( "system bundle".equals(name) )
                 {
                     // e.g. SystemProvider with framework=null
                     Log.verbose( "Discarding system bundle" );