cancel
Showing results for 
Search instead for 
Did you mean: 

Java.lang.NullPointerException occurs during MX script.

PLane.1
Associate II

CubeIDE 1.2.0

I have a simple script to test the command line setup. The script is loading the .ioc and creating .csv of the pinout.

I get partially through the csv command where Java runs into a NullPointerException seen below

2020-06-09 12:53:23,629 [DEBUG] PinoutAndConfigurationView:553 - sp_PinoutAndSystemViews - pce.getPropertyName() : dividerLocation1.0
2020-06-09 12:53:23,629 [DEBUG] PinoutAndConfigurationView:691 - sp_ModeConfig - pce.getPropertyName() : dividerLocation0.5
2020-06-09 12:53:23,649 [DEBUG] PinoutAndConfigurationView:960 - Start propertyChange PinoutAndConfigurationView : preferredSize
2020-06-09 12:53:23,649 [DEBUG] PinoutAndConfigurationView:1030 - End propertyChange PinoutAndConfigurationView : preferredSize
2020-06-09 12:53:23,649 [DEBUG] PinOutPanel:732 - fitInWindow Computed Zoom: 0.5
2020-06-09 12:53:23,692 [DEBUG] PinOutPanel:732 - fitInWindow Computed Zoom: 0.5
2020-06-09 12:53:23,754 [DEBUG] PinoutAndConfigurationView:1447 - Resize component
2020-06-09 12:53:23,754 [DEBUG] PinOutPanel:732 - fitInWindow Computed Zoom: 0.5
java.lang.NullPointerException
        at com.st.microxplorer.mcu.Mcu$37.onCommandEntered(Mcu.java:3641)
        at com.st.components.util.CommandLineManager.onCommandEntered(CommandLineManager.java:155)
        at com.st.components.util.CommandLineManager.runCommand(CommandLineManager.java:172)
        at com.st.components.util.CommandLineManager.runCommand(CommandLineManager.java:188)
        at com.st.components.util.CommandLineManager.runCommand(CommandLineManager.java:331)
        at com.st.components.util.CommandLineManager.onCommandEntered(CommandLineManager.java:414)
        at com.st.components.util.CommandLineManager.onCommandEntered(CommandLineManager.java:140)
        at com.st.components.util.CommandLineManager.runCommand(CommandLineManager.java:174)
        at com.st.components.util.CommandLineManager.runCommand(CommandLineManager.java:331)
        at com.st.microxplorer.maingui.MicroXplorer.run(MicroXplorer.java:246)
        at com.st.microxplorer.maingui.STM32CubeMX.run(STM32CubeMX.java:25)
        at com.st.microxplorer.maingui.STM32CubeMX.main(STM32CubeMX.java:40)
KO

How do I download or add the offending components? I am not sure exactly how to fix this issue.

2 REPLIES 2
TDK
Guru

Not sure you're going to get much support with v1.2.0. Updating to v1.3.1 might yield different results.

If you feel a post has answered your question, please click "Accept as Solution".
PLane.1
Associate II

Ok then reply as if I was on 1.3.1 ...

I am in CubeIDE version 1.2, which is using Cube MX version 5.6.1 which is the latest version of CubeMX. And since this is a CubeMX command the IDE version should not matter now that I think of it.

Also referencing Document UM1718 V31 December 2019 section 3.3.2 for command line and scripting commands

Detected Java Version = 1.8.0_202