Skip to content

Commit cdc0104

Browse files
committed
Trac27280 nur Registrieren, wenn Textdokument
1 parent a58df54 commit cdc0104

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/de/muenchen/allg/itd51/wollmux/event/GlobalEventListener.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,11 @@ private void onViewCreated(Object source)
168168
XModel compo = UNO.XModel(source);
169169
if (compo != null)
170170
{
171-
registerDispatcher(compo.getCurrentController().getFrame());
171+
XTextDocument xTextDocument = UNO.XTextDocument(compo);
172+
if(xTextDocument != null)
173+
{
174+
registerDispatcher(compo.getCurrentController().getFrame());
175+
}
172176
WollMuxEventHandler.handleOnViewCreated(compo);
173177
}
174178
}

0 commit comments

Comments
 (0)