Fixes #2434
authorn.hoffmann <n.hoffmann@localhost>
Mon, 6 Jun 2011 15:35:20 +0000 (15:35 +0000)
committern.hoffmann <n.hoffmann@localhost>
Mon, 6 Jun 2011 15:35:20 +0000 (15:35 +0000)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialogs/filteredSelection/TaxonNodeSelectionDialog.java

index b9a83821404f6dcf76e75970b69168162326c00d..070cc0abc69fb248d6465639ebe6148a95f8f658 100644 (file)
@@ -132,7 +132,11 @@ public class TaxonNodeSelectionDialog extends AbstractFilteredCdmResourceSelecti
        /** {@inheritDoc} */
        @Override
        protected String getTitle(TaxonNode taxonNode) {
-               return taxonNode.getTaxon().getTitleCache();
+               if(taxonNode != null && taxonNode.getTaxon() != null){
+                       return taxonNode.getTaxon().getTitleCache();
+               }
+               
+               return "";
        }
        
        /* (non-Javadoc)
@@ -177,7 +181,9 @@ public class TaxonNodeSelectionDialog extends AbstractFilteredCdmResourceSelecti
        /** {@inheritDoc} */
        public void widgetSelected(SelectionEvent e) {
                selectedClassification = classifications.get(classificationSelectionCombo.getSelectionIndex());
-               refresh();
+               
+//             refresh();
+               setPattern(null);
        }
 
        /** {@inheritDoc} */