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)

 Accepted Answer

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:

More Answers (0)

Categories

Find more on Create Large-Scale Model Components in Help Center and File Exchange

Products

Release

R2017b

Community Treasure Hunt

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

Start Hunting!