incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1076244 - /sling/trunk/installer/core/src/main/java/org/apache/sling/installer/core/impl/tasks/BundleInstallTask.java
Date Wed, 02 Mar 2011 15:14:03 GMT
Author: cziegeler
Date: Wed Mar  2 15:14:03 2011
New Revision: 1076244

URL: http://svn.apache.org/viewvc?rev=1076244&view=rev
Log:
Ignore number format exception

Modified:
    sling/trunk/installer/core/src/main/java/org/apache/sling/installer/core/impl/tasks/BundleInstallTask.java

Modified: sling/trunk/installer/core/src/main/java/org/apache/sling/installer/core/impl/tasks/BundleInstallTask.java
URL: http://svn.apache.org/viewvc/sling/trunk/installer/core/src/main/java/org/apache/sling/installer/core/impl/tasks/BundleInstallTask.java?rev=1076244&r1=1076243&r2=1076244&view=diff
==============================================================================
--- sling/trunk/installer/core/src/main/java/org/apache/sling/installer/core/impl/tasks/BundleInstallTask.java
(original)
+++ sling/trunk/installer/core/src/main/java/org/apache/sling/installer/core/impl/tasks/BundleInstallTask.java
Wed Mar  2 15:14:03 2011
@@ -50,7 +50,11 @@ public class BundleInstallTask extends A
             if ( providedLevel instanceof Number ) {
                 startLevel = ((Number)providedLevel).intValue();
             } else {
-                startLevel = Integer.valueOf(providedLevel.toString());
+                try {
+                    startLevel = Integer.valueOf(providedLevel.toString());
+                } catch (final NumberFormatException nfe) {
+                    // ignore this
+                }
             }
         }
         // get the start level service (if possible) so we can set the initial start level



Mime
View raw message