MATLAB: Do I receive a java.lang.​NullPointe​rException and ComponentSizeAggregator error in the log file when attempting to install

During the download section of the MATLAB Installer, I receive a message stating "Error: The application encountered an unexpected error and needs to close. You may want to try re-installing your product(s)." The error message suggested I check my log file for more information. The log file contains this error among others:
java.lang.NullPointerException
at com.mathworks.install.ComponentSizeAggregator.add(ComponentSizeAggregator.java:13)
at com.mathworks.install.ProductInstallerImpl.downloadProducts(ProductInstallerImpl.java:96)
at com.mathworks.install.ProductInstallerImpl.installProducts(ProductInstallerImpl.java:57)
Why is this happening and how do I resolve this issue?

Best Answer

To resolve this issue, re-download the installer/products as it may have been corrupted during the download process and go through the installation again.
Related Question