MATLAB: Do I receive a Java NullPointerException error when I try to view a partially constructed custom network in the Neural Network Tool in the Neural Network Toolbox

Deep Learning ToolboxerrorjavaNetworkneuralnntoolnullpointerexceptionview

I use the NETWORK function to create a custom network:
net = network;
I import the network to the Neural Network Tool. Then I try to view the network using the "View" button in the Neural Network Tool. I receive an error:
java.lang.NullPointerException
at com.mathworks.toolbox.nnet.NNTGUI.convertStringsToChars(NNTGUI.java:110)
at com.mathworks.toolbox.nnet.NNTGUI.postEventToMATLAB(NNTGUI.java:88)
at com.mathworks.toolbox.nnet.NNTGUI.postEvent(NNTGUI.java:167
[SNIP]

Best Answer

This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
We have verified that there is a bug in the Neural Network Toolbox 4.0.4 (R14SP1) and earlier versions in the way that the Neural Network Tool handles partially constructed custom networks.
There are currently no known workarounds, except to avoid viewing the network until it is fully constructed.