cmsis-pack-eclipse icon indicating copy to clipboard operation
cmsis-pack-eclipse copied to clipboard

NPE when refreshing packs from web

Open AdrianOltean opened this issue 1 year ago • 0 comments

When starting MCUXpresso IDE (without having the required Packs folder previously populated) and clicking to refresh the index, a NPE is encountered: image

Once refresh is done: image

!ENTRY org.eclipse.core.jobs 4 2 2024-07-23 15:18:06.913
!MESSAGE An internal error occurred during: "Refresh packs from web".
!STACK 0
java.lang.NullPointerException: Cannot invoke "java.lang.Boolean.toString()" because "com.arm.cmsis.pack.preferences.CpPreferenceInitializer.autoUpdateFlag" is null
	at com.arm.cmsis.pack.preferences.CpPreferenceInitializer.writeUpdateFile(CpPreferenceInitializer.java:334)
	at com.arm.cmsis.pack.preferences.CpPreferenceInitializer.updateLastUpdateTime(CpPreferenceInitializer.java:285)
	at com.arm.cmsis.pack.installer.CpPackInstaller.updatePacks(CpPackInstaller.java:609)
	at com.arm.cmsis.pack.installer.CpPackInstaller.updatePacks(CpPackInstaller.java:447)
	at com.arm.cmsis.pack.installer.jobs.CpUpdatePacksJob.run(CpUpdatePacksJob.java:33)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

Environment: MCUXpressoIDE_11.10.0 + ARM CMSIS-Pack Management plugins v2.9.0

AdrianOltean avatar Jul 24 '24 13:07 AdrianOltean