Skip to content

Commit

Permalink
Fixing java.lang.ArrayIndexOutOfBoundsException error in Powerpack cl…
Browse files Browse the repository at this point in the history
…ass in existing code
  • Loading branch information
Sajal Singhal committed Jan 17, 2024
1 parent f4578a1 commit b17d5fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public String getId() {

public String getNumberPoolId() {
String[] numberpool_uuid = getNumber_pool().split("/");
return numberpool_uuid[5];
return (numberpool_uuid.length > 5) ? numberpool_uuid[5] : null;
}

}

0 comments on commit b17d5fa

Please sign in to comment.