Why do I receive an error when trying to drag and drop commands from the Command History window to the Command Window in MATLAB 7.0.1 (R14SP1) on MacOS?

2 views (last 30 days)
When I am dragging a command from the Command History window to the Command Window, I receive the following error message:
java.lang.NullPointerException
at apple.awt.CDropTargetContextPeer.flushEvents(CDropTargetContextPeer.java:51)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This might be caused by a problem with the Mac Java version. You can resolve the problem by downloading the Java 1.4.2 version from the Apple web site.
As a workaround in MATLAB, recall previous statements in the Command Window by using the up arrow, instead of dragging and dropping commands from the Command History window.
Some MATLAB users have reported that re-installing MATLAB resolved this issue.

More Answers (0)

Products


Release

R14SP1

Community Treasure Hunt

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

Start Hunting!