Fix NPE for advanced media view
authorPatrick Plitzner <p.plitzner@bgbm.org>
Mon, 7 Sep 2015 11:15:21 +0000 (13:15 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Mon, 7 Sep 2015 11:21:31 +0000 (13:21 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/UriWithLabelElement.java

index 40a55fa..1c39870 100644 (file)
@@ -52,6 +52,7 @@ public class UriWithLabelElement extends TextWithLabelElement {
 
         //composite(uri + button)
         Composite textAndButton = formFactory.createComposite(getLayoutComposite(), style);
+        addControl(textAndButton);
         textAndButton.setLayout(LayoutConstants.LAYOUT(2, false));
         textAndButton.setLayoutData(LayoutConstants.FILL_HORIZONTALLY());