Untitled
public java v1 · immutable String testBit = "off"; try { String tmp = (String)application.getAttribute("testBit"); testBit = tmp; } catch (Throwable t) { application.setAttribute("testBit", "off"); } if (testBit.equals("on")) { // I get null pointer exception here... //whatever }