Community
Participate
Working Groups
Cloned from: 351921: [DB] NPE in GMF notation caused by CoreTypeMappings$TMCustom.getDefaultValue https://bugs.eclipse.org/bugs/show_bug.cgi?id=351921 Build Identifier: Hello, I have a GMF diagram stored in my repository that causes the following stack trace (on commit after modification on a connection): org.eclipse.emf.cdo.util.CommitException: Rollback in DBStore: java.lang.NullPointerException at org.eclipse.gmf.runtime.notation.impl.NotationFactoryImpl.convertRelativeBendpointListToString(NotationFactoryImpl.java:1221) at org.eclipse.gmf.runtime.notation.impl.NotationFactoryImpl.convertToString(NotationFactoryImpl.java:288) at org.eclipse.emf.cdo.server.internal.db.mapping.CoreTypeMappings$TMCustom.getDefaultValue(CoreTypeMappings.java:847) at org.eclipse.emf.cdo.server.db.mapping.AbstractTypeMapping.setDefaultValue(AbstractTypeMapping.java:99) at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.HorizontalBranchingClassMapping.detachAttributes(HorizontalBranchingClassMapping.java:691) ... It appears that in CoreTypeMappings$TMCustom.getDefaultValue() the expression getFeature().getDefaultValue(); returns a null value. Is it possible to test if it is null? It seems to be tested in CoreTypeMappings$TMEnum.getDefaultValue(). Note that this exception happens on the server side, not on a client. Thanks, Steve Reproducible: Always
Created attachment 200428 [details] Fix
Committed revision 8826: - branches/4.0-maintenance/plugins/org.eclipse.emf.cdo.server.db - branches/4.0-maintenance/plugins/org.eclipse.emf.cdo.tests
Resolved.
Closing.