Skip to Content.
Sympa Menu

notify-dpml - r1040 - trunk/main/metro/model/src/main/net/dpml/metro/info

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: r1040 - trunk/main/metro/model/src/main/net/dpml/metro/info
  • Date: Sun, 5 Feb 2006 19:33:49 +0100

Author: mcconnell
Date: 2006-02-05 19:33:44 +0100 (Sun, 05 Feb 2006)
New Revision: 1040

Modified:
trunk/main/metro/model/src/main/net/dpml/metro/info/Type.java
Log:
correct null type evaluation

Modified: trunk/main/metro/model/src/main/net/dpml/metro/info/Type.java
===================================================================
--- trunk/main/metro/model/src/main/net/dpml/metro/info/Type.java
2006-02-05 17:38:29 UTC (rev 1039)
+++ trunk/main/metro/model/src/main/net/dpml/metro/info/Type.java
2006-02-05 18:33:44 UTC (rev 1040)
@@ -172,8 +172,7 @@
{
String path = clazz.getName().replace( '.', '/' ) + ".type";
URL url = clazz.getClassLoader().getResource( path );
- InputStream input = url.openStream();
- if( null == input )
+ if( null == url )
{
// no component type defined ..
// create a default type definition
@@ -183,6 +182,7 @@
{
try
{
+ InputStream input = url.openStream();
return decode( context, input );
}
catch( IOException e )




  • r1040 - trunk/main/metro/model/src/main/net/dpml/metro/info, mcconnell at BerliOS, 02/05/2006

Archive powered by MHonArc 2.6.24.

Top of Page