[Yanel-commits] rev 45971 -
public/yanel/trunk/src/realms/welcome-admin/yanel/resources/update-webapp/src/java/org/wyona/yanel/impl/resources/updatefinder
michi at wyona.com
michi at wyona.com
Fri Dec 11 11:44:36 CET 2009
Author: michi
Date: 2009-12-11 11:44:36 +0100 (Fri, 11 Dec 2009)
New Revision: 45971
Modified:
public/yanel/trunk/src/realms/welcome-admin/yanel/resources/update-webapp/src/java/org/wyona/yanel/impl/resources/updatefinder/UpdateFinder.java
Log:
check for length
Modified: public/yanel/trunk/src/realms/welcome-admin/yanel/resources/update-webapp/src/java/org/wyona/yanel/impl/resources/updatefinder/UpdateFinder.java
===================================================================
--- public/yanel/trunk/src/realms/welcome-admin/yanel/resources/update-webapp/src/java/org/wyona/yanel/impl/resources/updatefinder/UpdateFinder.java 2009-12-11 10:42:17 UTC (rev 45970)
+++ public/yanel/trunk/src/realms/welcome-admin/yanel/resources/update-webapp/src/java/org/wyona/yanel/impl/resources/updatefinder/UpdateFinder.java 2009-12-11 10:44:36 UTC (rev 45971)
@@ -109,7 +109,7 @@
}
String[] xsltPath = getXSLTPath(getPath());
- if (xsltPath != null) {
+ if (xsltPath != null && xsltPath.length > 0) {
// create reader:
XMLReader xmlReader = XMLReaderFactory.createXMLReader();
@@ -167,6 +167,7 @@
view.setInputStream(new ByteArrayInputStream(baos.toByteArray()));
return view;
}
+
log.debug("Mime-Type: " + mimeType);
view.setInputStream(new java.io.StringBufferInputStream(getScreen()));
return view;
More information about the Yanel-commits
mailing list