Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2021-11-18 03:27:55 +0000
committerEike Stepper2021-11-18 03:27:55 +0000
commit52aae9b138a63f643cf814405f70fe3403eaf3e6 (patch)
tree11a8c9e9d893ff7fae3f70008a74149a8e1de39d /plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf
parent2e99e2630d4c5b1e101bb4423040721d85f0162e (diff)
downloadcdo-52aae9b138a63f643cf814405f70fe3403eaf3e6.tar.gz
cdo-52aae9b138a63f643cf814405f70fe3403eaf3e6.tar.xz
cdo-52aae9b138a63f643cf814405f70fe3403eaf3e6.zip
[577311] NPE in Net4J when launching the Eclipse Modeling 2021-12 M2 pacakge
https://bugs.eclipse.org/bugs/show_bug.cgi?id=577311
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf')
-rw-r--r--plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/bundle/OM.java16
1 files changed, 15 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/bundle/OM.java b/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/bundle/OM.java
index 6855eff7d4..390fc48f7f 100644
--- a/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/bundle/OM.java
+++ b/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/bundle/OM.java
@@ -10,6 +10,7 @@
*/
package org.eclipse.emf.cdo.internal.common.bundle;
+import org.eclipse.emf.cdo.common.util.URIHandlerRegistry;
import org.eclipse.emf.cdo.internal.common.util.URIHandlerRegistryImpl;
import org.eclipse.net4j.util.ReflectUtil;
@@ -17,6 +18,7 @@ import org.eclipse.net4j.util.om.OMBundle;
import org.eclipse.net4j.util.om.OMPlatform;
import org.eclipse.net4j.util.om.OSGiActivator;
import org.eclipse.net4j.util.om.log.OMLogger;
+import org.eclipse.net4j.util.om.trace.ContextTracer;
import org.eclipse.net4j.util.om.trace.OMTracer;
import org.eclipse.emf.ecore.resource.URIHandler;
@@ -60,6 +62,8 @@ public abstract class OM
*/
public static final class Activator extends OSGiActivator
{
+ private static final ContextTracer TRACER = new ContextTracer(OM.DEBUG, Activator.class);
+
private static final boolean disableURIHandlerRegistry = OMPlatform.INSTANCE.isProperty("org.eclipse.emf.cdo.common.disableURIHandlerRegistry");
public Activator()
@@ -84,7 +88,17 @@ public abstract class OM
}
catch (Throwable t)
{
- LOG.error(t);
+ try
+ {
+ if (TRACER.isEnabled())
+ {
+ TRACER.format(URIHandlerRegistry.class + ".INSTANCE could not be added to " + URIHandler.class + ".DEFAULT_HANDLERS", t);
+ }
+ }
+ catch (Throwable ignored)
+ {
+ //$FALL-THROUGH$
+ }
}
}
}

Back to the top