From 38f1b3066e9ae7ed8d64c3732ee1f4b51385291e Mon Sep 17 00:00:00 2001 From: Don Brutzman <brutzman@nps.edu> Date: Sun, 23 Aug 2020 21:04:52 -0700 Subject: [PATCH] avoid npe --- src/edu/nps/moves/dis7/utilities/stream/PduPlayer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/edu/nps/moves/dis7/utilities/stream/PduPlayer.java b/src/edu/nps/moves/dis7/utilities/stream/PduPlayer.java index 6a1dd7e7d1..921ecd83d7 100644 --- a/src/edu/nps/moves/dis7/utilities/stream/PduPlayer.java +++ b/src/edu/nps/moves/dis7/utilities/stream/PduPlayer.java @@ -164,7 +164,8 @@ public class PduPlayer { //Add the "]" to the end of sa[0]. It was taken off by the split sa[0] = sa[0].concat("]"); //Add the "]" to the end of sa[0]. It was taken off by the split - sa[1] = "[".concat(sa[1]); + if (sa.length > 1) + sa[1] = "[".concat(sa[1]); break; -- GitLab