I have a array that can sometimes be null (strings[0]) and I want to be able to detect when its null so I don't get a error and I can tell the user.
I tried a if statement
(if (strings == null){
//do my code
})
that didn't work. I tried to do try, catch (NullPointerException) but I'm getting an error in my IDE. Any help would be much appreciated.