com pftt2: Fixes #76: ArrayOutOfBounds exception fixed.: src/com/mostc/pftt/main/PfttMain.java
| From: | Christoph Michael Becker | Date: | Fri, 22 Nov 2019 18:40:14 +0000 |
| Subject: | com pftt2: Fixes #76: ArrayOutOfBounds exception fixed.: src/com/mostc/pftt/main/PfttMain.java | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-68772@lists.php.net to get a copy of this message | ||
Commit: c00d4846bcc545ae7ad22f0d9433f9077d1c6705
Author: Allen Truong <v-altruo@microsoft.com> Fri, 22 Nov 2019 19:33:56 +0100
Committer: Christoph M. Becker <cmbecker69@gmx.de> 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;
}