[Bug 1141] New: Null pointer exception if foreach array is empty
https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=1141 Summary: Null pointer exception if foreach array is empty Product: Swift Version: 0.94 Platform: PC OS/Version: Mac OS Status: ASSIGNED Severity: normal Priority: P2 Component: SwiftScript language AssignedTo: [email protected] ReportedBy: [email protected] Example below. Note that the null array is desired here, as the array may be set dynamically and an empty array should result in zero iterations of the foreach. login1$ swift e1.swift WARNING: Empty array constant Swift 0.94.1 swift-r7114 cog-r3803 RunID: 20131123-1240-v2j459gd Progress: time: Sat, 23 Nov 2013 12:40:31 -0600 Execution failed: java.lang.NullPointerException Caused by: java.lang.NullPointerException at org.griphyn.vdl.karajan.lib.CreateArray.function(CreateArray.java:57) at org.griphyn.vdl.karajan.lib.VDLFunction.post(VDLFunction.java:81) at org.globus.cog.karajan.workflow.nodes.AbstractSequentialWithArguments.completed(AbstractSequentialWithArguments.java:194) at org.globus.cog.karajan.workflow.nodes.FlowNode.complete(FlowNode.java:214) at org.globus.cog.karajan.workflow.nodes.FlowContainer.post(FlowContainer.java:58) at org.globus.cog.karajan.workflow.nodes.functions.AbstractFunction.post(AbstractFunction.java:28) at org.globus.cog.karajan.workflow.nodes.Sequential.startNext(Sequential.java:29) at org.globus.cog.karajan.workflow.nodes.Sequential.executeChildren(Sequential.java:20) at org.globus.cog.karajan.workflow.nodes.FlowContainer.execute(FlowContainer.java:63) at org.globus.cog.karajan.workflow.nodes.FlowNode.restart(FlowNode.java:139) at org.globus.cog.karajan.workflow.nodes.FlowNode.start(FlowNode.java:197) at org.globus.cog.karajan.workflow.FlowElementWrapper.start(FlowElementWrapper.java:227) at org.globus.cog.karajan.workflow.events.EventBus.start(EventBus.java:103) at org.globus.cog.karajan.workflow.events.EventTargetPair.run(EventTargetPair.java:40) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) login1$ cat e1.swift int i[] = [1,3,5,7,9]; foreach j in [] { trace(j); } login1$ -- Configure bugmail: https://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=1141 [email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P2 |Highest Version|0.94 |unspecified CC| |[email protected] Platform|PC |Other Component|SwiftScript language |Error messages AssignedTo|[email protected] |[email protected] Target Milestone|v0.94 |v0.2 Severity|normal |blocker OS/Version|Mac OS |Linux -- Configure bugmail: http://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=1141 --- Comment #1 from [email protected] 2015-07-30 12:23:32 --- Someone is accessing my information somehow and blocking me from my school website and every other site I try to browse. please help, I have no idea how to deal with this. I know my boyfriend is the one doing all this monitoring on all my devices but I just don't know how to prove all the harm his been doing through all this software developer downloads. -- Configure bugmail: http://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
bugzilla-daemon@mcs.anl.gov