Skip to Content.
Sympa Menu

notify-dpml - r1867 - trunk/main/metro/part/src/main/dpml/appliance

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: r1867 - trunk/main/metro/part/src/main/dpml/appliance
  • Date: Sat, 10 Feb 2007 04:02:34 +0100

Author: mcconnell
Date: 2007-02-10 04:02:33 +0100 (Sat, 10 Feb 2007)
New Revision: 1867

Modified:
trunk/main/metro/part/src/main/dpml/appliance/ApplianceHelper.java
Log:
resolve NPE in partition name selection

Modified: trunk/main/metro/part/src/main/dpml/appliance/ApplianceHelper.java
===================================================================
--- trunk/main/metro/part/src/main/dpml/appliance/ApplianceHelper.java
2007-02-10 02:44:18 UTC (rev 1866)
+++ trunk/main/metro/part/src/main/dpml/appliance/ApplianceHelper.java
2007-02-10 03:02:33 UTC (rev 1867)
@@ -50,6 +50,10 @@

public static Appliance newAppliance( String partition, URI uri ) throws
IOException
{
+ if( null == partition )
+ {
+ throw new NullPointerException( "partition" );
+ }
Artifact artifact = Artifact.createArtifact( uri );
String type = artifact.getType();
ContentHandler handler = Transit.getInstance().getContentHandler(
type );
@@ -84,7 +88,7 @@

private static String getPartition()
{
- String partition = System.getProperty( "dpml.station.partition",
null );
+ String partition = System.getProperty( "dpml.station.partition",
"main" );
Properties system = System.getProperties();
return PropertyResolver.resolve( system, partition );
}




  • r1867 - trunk/main/metro/part/src/main/dpml/appliance, mcconnell at BerliOS, 02/09/2007

Archive powered by MHonArc 2.6.24.

Top of Page