npe fix - when java extension is disabled