Adding SEEG electrodes without recordings: Java error

I am using BrainStorm on MacOsX on Apple Silicone. I have used Freesurfer on SEEG image sets with fused MRI/post-op CT. I am trying to add SEEG electrodes without importing recordings. So, I loaded the MRI and coregistered CT. I then add SEEG/ECOG implantation on the volume. I don't have any recordings, so there are no electrodes. I open the iEEG panel and click + but then get this error:


** Error: Line 857: panel_ieeg>SetSelectedElectrodes
** Java exception occurred:
** java.lang.NullPointerException
** at javax.swing.JComponent.scrollRectToVisible(JComponent.java:3108)
** at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
** at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
** at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
** at java.lang.reflect.Method.invoke(Method.java:498)
** at com.mathworks.jmi.AWTUtilities$Invoker$3$1.call(AWTUtilities.java:525)
** at com.mathworks.mvm.context.ThreadContext.callWithContext(ThreadContext.java:105)
** at com.mathworks.mvm.context.MvmContext.callWithContext(MvmContext.java:113)
** at com.mathworks.jmi.AWTUtilities$Invoker$3.runWithOutput(AWTUtilities.java:522)
** at com.mathworks.jmi.AWTUtilities$Invoker$2.watchedRun(AWTUtilities.java:475)
** at com.mathworks.jmi.AWTUtilities$WatchedRunnable.run(AWTUtilities.java:436)
** at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
** at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
** at java.awt.EventQueue.access$500(EventQueue.java:97)
** at java.awt.EventQueue$3.run(EventQueue.java:709)
** at java.awt.EventQueue$3.run(EventQueue.java:703)
** at java.security.AccessController.doPrivileged(Native Method)
** at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
** at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
** at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
** at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
** at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
** at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
** at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
** at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
**
** Call stack:
** >panel_ieeg.m>SetSelectedElectrodes at 857
** >panel_ieeg.m>AddElectrode at 1384
** >bst_call.m at 28
** >panel_ieeg.m>@(h,ev)bst_call(@AddElectrode) at 54
**


I have Java installed, and otherwise have had no issues running Brainstorm. Any help would be greatly appreciated!

Hi @jaronson,

Thank you for reaching out to us.

Can you tell me which version of Brainstorm you are using ?

I would also suggest you look at this tutorial below which is very similar to the workflow you are trying to do: https://neuroimage.usc.edu/brainstorm/Tutorials/IeegContactLocalization

Thanks for the reply! I'm using Matlab 2022b and Brainstorm 3.24057. I'll take a look at that tutorial as well.