Why do I get a Java exception when I close a Simulink Project?

Closing a project throws the following Java exception:
Exception in thread "Simulink Project Thread: 48" java.lang.NullPointerException
at com.mathworks.toolbox.slproject.extensions.dependency.problems.managers.ProblemManagerBase.updateProblems(ProblemManagerBase.java:130)
at com.mathworks.toolbox.slproject.extensions.dependency.problems.managers.ProblemManagerBase.access$500(ProblemManagerBase.java:41)
at com.mathworks.toolbox.slproject.extensions.dependency.problems.managers.ProblemManagerBase$UpdateRunnable.run(ProblemManagerBase.java:242)
at com.mathworks.toolbox.shared.computils.threads.CoalescingExecutor$1.run(CoalescingExecutor.java:62)
at com.mathworks.toolbox.shared.computils.threads.WrappingExecutorService$WrappedRunnable.run(WrappingExecutorService.java:74)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

 Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 14 Mai 2018

0 Stimmen

If you close a Simulink Project while Simulink models are loaded, you can sometimes see a Java NullPointerException in the command window.
You can ignore the Java exception and continue working. To prevent the exception appearing, close all Simulink models before closing the Simulink Project.
For more details, refer to:

Weitere Antworten (0)

Kategorien

Mehr zu Create Large-Scale Model Components finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by