[Laszlo-checkins] r3976 - openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/compiler
ptw@openlaszlo.org
ptw at openlaszlo.org
Wed Feb 28 11:15:34 PST 2007
Author: ptw
Date: 2007-02-28 11:15:31 -0800 (Wed, 28 Feb 2007)
New Revision: 3976
Modified:
openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/compiler/ToplevelCompiler.java
Log:
Change 20070228-ptw-5 by ptw at dueling-banjos.local on 2007-02-28 14:13:26 EST
in /Users/ptw/OpenLaszlo/3.4.1
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Beware null parents
Bugs Fixed:
LPP-NaN 'lzc -c recommendation.lzx
Exception in thread "main" java.lang.NullPointerException'
Technical Reviewer: hminsky (pending)
QA Reviewer: pkang (pending)
Doc Reviewer: n/a
Details:
Null parent means "."
Tests:
lzc -c recommendation.lzx
Modified: openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/compiler/ToplevelCompiler.java
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/compiler/ToplevelCompiler.java 2007-02-28 19:13:52 UTC (rev 3975)
+++ openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/compiler/ToplevelCompiler.java 2007-02-28 19:15:31 UTC (rev 3976)
@@ -212,7 +212,7 @@
// 'auto'
if (autoIncluded != null) {
try {
- String basePrefix = (new File(base)).getCanonicalPath();
+ String basePrefix = (new File((base != null) ? base : ".")).getCanonicalPath();
for (Iterator i = visited.iterator(); i.hasNext(); ) {
File file = (File)i.next();
String path = file.getCanonicalPath();
More information about the Laszlo-checkins
mailing list