MATLAB: Won’t MATLAB start when connected to external monitors on Mac OS

MATLAB

Why won't MATLAB start when connected to external monitors on Mac OS and why do I see the following error in Terminal?
Fatal Internal Error: Java exception occurred:
java.lang.NullPointerException
at sun.lwawt.macosx.LWCToolkit.getScreenWidth(LWCToolkit.java:362)
at sun.awt.SunToolkit.getScreenSize(SunToolkit.java:642)
at com.mathworks.mde.desk.MLDesktop.isWideScreen(MLDesktop.java:966)
at com.mathworks.mde.desk.MLDesktop.getInitialLayoutFilename(MLDesktop.java:970)
at com.mathworks.mde.desk.MLDesktop.<init>(MLDesktop.java:579)
at com.mathworks.mde.desk.MLDesktop.getInstance(MLDesktop.java:647)

Best Answer

This issue is being investigated by MathWorks.
As a workaround, you will want to disconnect any external displays from the computer, and launch MATLAB. If MATLAB is still unable to start you will want to follow the article below for start up issues on Mac OS.
Why will MATLAB not start up properly on my Mac?
NOTE: This issue can also occur when installing. Disconnect any external displays and try again.
Related Question