encog/encog-java-core — Issue #81: SOMClusterCopyTraining - NullPointerException
Author: PetrToman
Created: 2012-03-06 10:17:10+00:00
State: open

1. In Workbench, run Analyst on data1.csv (http://dione.zcu.cz/~toman40/encog/data1.zip), choose "Self Organizing Map (SOM)" and execute all tasks.

2. Double click ``data1_train.eg (SOM)``, click "Train" and choose "SOM Cluster Copy Training" -> the following exception will be thrown:

```
Exception: java.lang.NullPointerException
org.encog.neural.som.training.clustercopy.SOMClusterCopyTraining.(SOMClusterCopyTraining.java:65)
org.encog.workbench.process.TrainBasicNetwork.performSOM(TrainBasicNetwork.java:336)
org.encog.workbench.process.TrainBasicNetwork.performMethodTrain(TrainBasicNetwork.java:186)
org.encog.workbench.process.TrainBasicNetwork.performTrain(TrainBasicNetwork.java:262)
org.encog.workbench.tabs.mlmethod.MLMethodTab.performTrain(MLMethodTab.java:158)
org.encog.workbench.tabs.mlmethod.MLMethodTab.actionPerformed(MLMethodTab.java:143)
javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
javax.swing.DefaultButtonModel.setPressed(Unknown Source)
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
java.awt.Component.processMouseEvent(Unknown Source)
javax.swing.JComponent.processMouseEvent(Unknown Source)
java.awt.Component.processEvent(Unknown Source)
java.awt.Container.processEvent(Unknown Source)
java.awt.Component.dispatchEventImpl(Unknown Source)
java.awt.Container.dispatchEventImpl(Unknown Source)
java.awt.Component.dispatchEvent(Unknown Source)
java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
java.awt.Container.dispatchEventImpl(Unknown Source)
java.awt.Window.dispatchEventImpl(Unknown Source)
java.awt.Component.dispatchEvent(Unknown Source)
java.awt.EventQueue.dispatchEventImpl(Unknown Source)
java.awt.EventQueue.access$000(Unknown Source)
java.awt.EventQueue$1.run(Unknown Source)
java.awt.EventQueue$1.run(Unknown Source)
java.security.AccessController.doPrivileged(Native Method)
java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
java.awt.EventQueue$2.run(Unknown Source)
java.awt.EventQueue$2.run(Unknown Source)
java.security.AccessController.doPrivileged(Native Method)
java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
java.awt.EventQueue.dispatchEvent(Unknown Source)
java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
java.awt.EventDispatchThread.run(Unknown Source)
```