IDEMPIERE-3128 : Fixing NPE while no 2pack presents
This commit is contained in:
parent
197e5f4ca2
commit
ea92f8a29d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue