Skip to content
Snippets Groups Projects
Commit 9f128343 authored by Adam Laskowski's avatar Adam Laskowski
Browse files

BIS-1034: Fixed NullPointerException in DataSetUploadClient

parent 2492881c
No related branches found
No related tags found
No related merge requests found
...@@ -319,7 +319,7 @@ public class DataSetPropertiesPanel extends JPanel ...@@ -319,7 +319,7 @@ public class DataSetPropertiesPanel extends JPanel
} else if (formField instanceof VocabularyTermsComboBoxPanel) } else if (formField instanceof VocabularyTermsComboBoxPanel)
{ {
VocabularyTermsComboBoxPanel comboBox = (VocabularyTermsComboBoxPanel) formField; VocabularyTermsComboBoxPanel comboBox = (VocabularyTermsComboBoxPanel) formField;
if(propertyValue.getClass().isArray()){ if(propertyValue != null && propertyValue.getClass().isArray()){
Serializable[] values = (Serializable[]) propertyValue; Serializable[] values = (Serializable[]) propertyValue;
for(Serializable val : values) { for(Serializable val : values) {
setVocabToComboBox(comboBox, (String) val); setVocabToComboBox(comboBox, (String) val);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment