String currentText = span.getText();
SingleElementNode sne = node.getSingleElementNode();
+ if (sne == null)
+ return;
+
Function1<String,String> fullTextFunction = sne.getParameter("textEditorFullText");
if(fullTextFunction != null)
es.currentText = fullTextFunction.apply(es.base.textElementId);
void applyEdit() {
SingleElementNode sne = node.getSingleElementNode();
- EditorState es = currentState();
- Function2<String,String,Object> editor = sne.getParameter("textEditor");
- if(editor != null) {
- editor.apply(es.base.textElementId, es.currentText);
+ if (sne != null) {
+ EditorState es = currentState();
+ Function2<String,String,Object> editor = sne.getParameter("textEditor");
+ if(editor != null) {
+ editor.apply(es.base.textElementId, es.currentText);
+ }
}
}