Fixing the error "java.lang.NullPointerException"

Hello,
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).
Stephane

Yes:

!ENTRY org.polarsys.capella.core.preferences 4 0 2022-11-07 18:20:50.936
!MESSAGE Unknown loading error.
!STACK 0
java.lang.RuntimeException: java.lang.NullPointerException
	at org.polarsys.capella.core.platform.sirius.ui.session.CapellaSessionHelper.handleLoadingErrors(CapellaSessionHelper.java:360)
	at org.polarsys.capella.core.platform.sirius.ui.session.CapellaSessionHelper.reportException(CapellaSessionHelper.java:287)
	at org.polarsys.capella.core.sirius.ui.actions.OpenSessionAction.doOpenSessions(OpenSessionAction.java:166)
	at org.polarsys.capella.core.sirius.ui.actions.OpenSessionAction$1.run(OpenSessionAction.java:226)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: java.lang.NullPointerException
	at java.base/java.nio.file.Path.of(Path.java:197)
	at java.base/java.nio.file.Paths.get(Paths.java:98)
	at org.polarsys.capella.core.platform.sirius.ui.session.GitConflictHelper.hasConflict(GitConflictHelper.java:162)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:176)
	at java.base/java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1694)
	at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:734)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
	at org.polarsys.capella.core.platform.sirius.ui.session.GitConflictHelper.getFiles(GitConflictHelper.java:238)
	at org.polarsys.capella.core.platform.sirius.ui.session.GitConflictHelper.getFilesInConflict(GitConflictHelper.java:246)
	at org.polarsys.capella.core.platform.sirius.ui.session.GitConflictHelper.checkConflictFiles(GitConflictHelper.java:209)
	at org.polarsys.capella.core.sirius.ui.actions.OpenSessionAction.doOpenSessions(OpenSessionAction.java:125)
... 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.