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 40a55fa89e2dedeffbd42715786802e66a2a43d4..1c39870fe93ccd9d53970220541f63d7eb6e4267 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());