Skip to content

Commit

Permalink
Fix null pointer exception on get selected id or value on MultipleChe…
Browse files Browse the repository at this point in the history
…ckbox
  • Loading branch information
c0deslinger committed Mar 14, 2020
1 parent 05c0954 commit 23242ec
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -335,11 +335,19 @@ public void detachView(){
}

public String getSelectedValue() {
return selectedValue.toString();
try {
return selectedValue.toString();
}catch (NullPointerException e){
return null;
}
}

public String getSelectedId() {
return selectedId.toString();
try {
return selectedId.toString();
}catch (NullPointerException e){
return null;
}
}

public ArrayList<CheckboxData> getSelectedCheckbox(){
Expand Down

0 comments on commit 23242ec

Please sign in to comment.