com pftt2: Fixes #76: ArrayOutOfBounds exception fixed.: src/com/mostc/pftt/main/PfttMain.java

[email protected] (Christoph Michael Becker)
Newsgroups php.qa
Message-ID <[email protected]>
Commit:    c00d4846bcc545ae7ad22f0d9433f9077d1c6705
Author:    Allen Truong <[email protected]>         Fri, 22 Nov 2019 19:33:56 +0100
Committer: Christoph M. Becker <[email protected]>      Fri, 22 Nov 2019 19:40:14 +0100
Parents:   94eb81a9e90be9f8ad1f576d9bf043e7952cc81a
Branches:  master

Link:       http://git.php.net/?p=pftt2.git;a=commitdiff;h=c00d4846bcc545ae7ad22f0d9433f9077d1c6705

Log:
Fixes #76: ArrayOutOfBounds exception fixed.

Bugs:
https://bugs.php.net/76

Changed paths:
  M  src/com/mostc/pftt/main/PfttMain.java


Diff:
diff --git a/src/com/mostc/pftt/main/PfttMain.java b/src/com/mostc/pftt/main/PfttMain.java
index 7149b1e4..ac0b6ade 100644
--- a/src/com/mostc/pftt/main/PfttMain.java
+++ b/src/com/mostc/pftt/main/PfttMain.java
@@ -758,8 +758,13 @@ public class PfttMain {
 					cm.showGUI(test_pack_runner);
 					
 					test_pack_runner.runTestList(test_pack, test_cases);
-				
-					tmgr.notifyPhptFinished(host, test_pack_runner.getScenarioSetSetup(), test_pack);
+					
+					ScenarioSetSetup scenarioSetSetup = test_pack_runner.getScenarioSetSetup();
+					if(scenarioSetSetup == null) {
+						return;
+					}
+					
+					tmgr.notifyPhptFinished(host, scenarioSetSetup, test_pack);
 					if (!run_flag.get())
 						return;
 				}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.