I have a script where I need to check null. I have a key with the name dT:
String dT = (String) caseChk.get("dT");
This returns a NullPointerException, since this key itself does not exist. If I check with
if(caseChk.get("dT") != null) {
}
another one NullPointerExceptionselected due .get. How can I check for nullwhen the key on the card does not exist? I understand that a method putshould handle it, but this is not under my control.]
source
share