I need some help please
I am trying to detect “missing values” presented in a table in KNIME as “?” using Java so that I replace them in a new Column with something else.
Hi,
are your question marks in the KNIME table red? They need to be red in order to truly represent missing values. Otherwise you need to check in Java using BinA.equals("?").
Kind regards
Alexander
I am using the Java Snippet and I have red ?.
I wanted to identity them with xxx.isEmpty(), but unfortunately I get the following error message “Evaluation of java snippet failed for row “Row2537”. The exception is caused by line 32 of the snippet.” where line 32 is “… xxx.isEmpty() ;”.
Hi,
In the normal Java Snippet the checkbox does not exist. Here the missing values (Red ?) are inserted as null and using x.isEmpty() results in a NullPointerException. Just check for null instead.
Kind regards
Alexander