Fixing the error "java.lang.NullPointerException"

I read a post from 2019 stating the origin of the error being related to the situation where your program (capella here) points out to a memory address located in a computer which is not the one you are using here (or it could be the same computer but the data has been deleted),

This is not critical for me but I would have liked to discover a way to solve this situation just in case, so here is a project that produces this error AT THE OPENING of the project, just double clicking on it:

Any idea what line of XML I could change in the aird file to get rid of this error?

Could you share the detail of the error? (in the .log file I suppose).
Maybe a “repair model” would solve the issue (save your files before launching it).


!ENTRY org.polarsys.capella.core.preferences 4 0 2022-11-07 18:20:50.936
!MESSAGE Unknown loading error.
java.lang.RuntimeException: java.lang.NullPointerException
	at org.polarsys.capella.core.platform.sirius.ui.session.CapellaSessionHelper.handleLoadingErrors(
	at org.polarsys.capella.core.platform.sirius.ui.session.CapellaSessionHelper.reportException(
	at org.polarsys.capella.core.sirius.ui.actions.OpenSessionAction.doOpenSessions(
	at org.polarsys.capella.core.sirius.ui.actions.OpenSessionAction$
	at org.eclipse.jface.operation.ModalContext$
Caused by: java.lang.NullPointerException
	at java.base/java.nio.file.Path.of(
	at java.base/java.nio.file.Paths.get(
	at org.polarsys.capella.core.platform.sirius.ui.session.GitConflictHelper.hasConflict(
	at java.base/$2$1.accept(
	at java.base/java.util.HashMap$KeySpliterator.forEachRemaining(
	at java.base/$ConcatSpliterator.forEachRemaining(
	at java.base/
	at java.base/
	at java.base/$ReduceOp.evaluateSequential(
	at java.base/
	at java.base/
	at org.polarsys.capella.core.platform.sirius.ui.session.GitConflictHelper.getFiles(
	at org.polarsys.capella.core.platform.sirius.ui.session.GitConflictHelper.getFilesInConflict(
	at org.polarsys.capella.core.platform.sirius.ui.session.GitConflictHelper.checkConflictFiles(
	at org.polarsys.capella.core.sirius.ui.actions.OpenSessionAction.doOpenSessions(
... 2 more

I think I know what it is now, It si a library missing, I forgot to copy paste aswell?

My model was heavily relying on a library of components, simpply adding the library to the workspace (and opening it) got rid of the error.

As for trying to make the project work without the library, I found XML codes starting like this:

<additionalMetadata href=../pathToTheLiB..>

Removing them from different xml files was not enough, I probably did not remove every occurence of the LIB, this info could help someone sometime in the future.