From fae38e3bd0280b725966d8a243e61d0666408b54 Mon Sep 17 00:00:00 2001 From: gleimar Date: Wed, 12 Aug 2015 14:45:18 +0000 Subject: [PATCH] =?UTF-8?q?corre=C3=A7=C3=A3o=20para=20o=20npe=20quando=20?= =?UTF-8?q?n=C3=A3o=20existe=20a=20constante:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 11:43:51,163 SEVERE [zkoss] Failed to invoke class com.rjconsultores.ventaboletos.web.utilerias.MyAppInit: java.lang.NullPointerException at com.rjconsultores.ventaboletos.web.utilerias.MyAppInit.horaExecucion(MyAppInit.java:73) [:] at com.rjconsultores.ventaboletos.web.utilerias.MyAppInit.jobGeneracionCorridas(MyAppInit.java:110) [:] at com.rjconsultores.ventaboletos.web.utilerias.MyAppInit.init(MyAppInit.java:57) [:] at org.zkoss.zk.ui.util.Configuration.invokeWebAppInits(Configuration.java:721) [:5.0.9] git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@46745 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../com/rjconsultores/ventaboletos/web/utilerias/MyAppInit.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/com/rjconsultores/ventaboletos/web/utilerias/MyAppInit.java b/src/java/com/rjconsultores/ventaboletos/web/utilerias/MyAppInit.java index 40e2db146..b6624eeb6 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/utilerias/MyAppInit.java +++ b/src/java/com/rjconsultores/ventaboletos/web/utilerias/MyAppInit.java @@ -70,7 +70,7 @@ public class MyAppInit implements org.zkoss.zk.ui.util.WebAppInit { arrayHoraMinuto[0] = 1; arrayHoraMinuto[1] = 0; - if (constante.getValorconstante() == null) { + if ( (constante == null) || (constante.getValorconstante() == null)) { return null; }