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