[Swift-commit] r5989 - trunk/src/org/griphyn/vdl/engine
hategan at ci.uchicago.edu
hategan at ci.uchicago.edu
Wed Oct 24 15:39:03 CDT 2012
Author: hategan
Date: 2012-10-24 15:39:03 -0500 (Wed, 24 Oct 2012)
New Revision: 5989
Modified:
trunk/src/org/griphyn/vdl/engine/Karajan.java
Log:
fixed NPE in compiler when proc has no arguments (or no returns) (bug857)
Modified: trunk/src/org/griphyn/vdl/engine/Karajan.java
===================================================================
--- trunk/src/org/griphyn/vdl/engine/Karajan.java 2012-10-23 04:12:35 UTC (rev 5988)
+++ trunk/src/org/griphyn/vdl/engine/Karajan.java 2012-10-24 20:39:03 UTC (rev 5989)
@@ -884,7 +884,10 @@
@SuppressWarnings("unchecked")
private boolean allVariables(Object st) {
List<StringTemplate> l;
- if (st instanceof List) {
+ if (st == null) {
+ return true;
+ }
+ else if (st instanceof List) {
l = (List<StringTemplate>) st;
}
else {
More information about the Swift-commit
mailing list