From ea92f8a29d8e729a2157b64c038ea87cb886f876 Mon Sep 17 00:00:00 2001 From: Deepak Pansheriya Date: Tue, 14 Jun 2016 11:19:54 +0530 Subject: [PATCH] IDEMPIERE-3128 : Fixing NPE while no 2pack presents --- .../org/adempiere/plugin/utils/Incremental2PackActivator.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org.adempiere.plugin.utils/src/org/adempiere/plugin/utils/Incremental2PackActivator.java b/org.adempiere.plugin.utils/src/org/adempiere/plugin/utils/Incremental2PackActivator.java index a6fc44cc55..8511b02986 100644 --- a/org.adempiere.plugin.utils/src/org/adempiere/plugin/utils/Incremental2PackActivator.java +++ b/org.adempiere.plugin.utils/src/org/adempiere/plugin/utils/Incremental2PackActivator.java @@ -118,6 +118,8 @@ public class Incremental2PackActivator extends AbstractActivator { //2Pack_1.0.0.zip, 2Pack_1.0.1.zip, etc Enumeration urls = context.getBundle().findEntries("/META-INF", "2Pack_*.zip", false); + if (urls == null) + return; while(urls.hasMoreElements()) { URL u = urls.nextElement(); String version = extractVersionString(u);