IDEMPIERE-3128 : Fixing NPE while no 2pack presents

This commit is contained in:
Deepak Pansheriya 2016-06-14 11:19:54 +05:30
parent 197e5f4ca2
commit ea92f8a29d
1 changed files with 2 additions and 0 deletions

View File

@ -118,6 +118,8 @@ public class Incremental2PackActivator extends AbstractActivator {
//2Pack_1.0.0.zip, 2Pack_1.0.1.zip, etc
Enumeration<URL> urls = context.getBundle().findEntries("/META-INF", "2Pack_*.zip", false);
if (urls == null)
return;
while(urls.hasMoreElements()) {
URL u = urls.nextElement();
String version = extractVersionString(u);