Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
sorry... that become smile in my previous post.
row1.patternCheck.equals("")?2: (row1.patternCheck.toLowerCase().indexOf("bye") >= 0)?1:2)
referree == null ? 1 :
referer.contains("facebook") ? 2 :
3
null.contains("facebook") /* source of your null pointer exception : null don't have a 'contains method' */
hi all,
you've got a null pointer exception , so you've to manage null value.
null is NOT a String in Java so =="NULL" or equals ("NULL") could not work !
in ternary expression it could be something like :referree == null ? 1 :
referer.contains("facebook") ? 2 :
3
I didn't test the code but it should work
Be aware that you sould test if not null before anything else because if it is null, java will try something likenull.contains("facebook") /* source of your null pointer exception : null don't have a 'contains method' */
it could be a better way to put your code in routine than directly in tMap or other component
regards
laurent