Why do I receive Java exception errors when I access "Version information" pane in the "History" tab under Model Properties?

1 view (last 30 days)
I opened a Simulink model, opened "File -> Model Properties", and selected the "History" tab. Under the "Version information" pane, I selected "Edit format strings" in the pull down menu, then selected "View current values" in the pull down menu. I received the following errors:
??? Java exception occurred:
java.lang.NullPointerException
at com.mathworks.mwt.MWUtils.contains(MWUtils.java:449)
at com.mathworks.mwt.MWBorderLayout.getFloaterContainingRect(MWBorderLayout.java:146)
at com.mathworks.mwt.MWFrame.update(MWFrame.java:1264)
.
Error in ==> D:\MATLAB6p5p1\toolbox\simulink\simulink\slmodelpropj.m (localChangeView)
On line 347 ==> Frame.update(Frame.getGraphics)
??? Error while evaluating com.mathworks.mwt.MWChoice ItemStateChangedCallback.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This has been verified as a bug in Simulink in the way that Model Properties window handles the "Edit Format Strings" menu.
Except for the errors in the MATLAB command window, the "Model history" is displaying the correct version information every time you save the model. However, when you change back to "View current values", the "Model version" does not get updated. To get around this problem, you can select "Edit format strings" once more, then choose "View current values" again to update the "Model version".

More Answers (0)

Products


Release

R13SP1

Community Treasure Hunt

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

Start Hunting!