import java.util.regex.Matcher;
import java.util.regex.Pattern;
-import org.apache.commons.lang3.StringUtils;
import org.openhab.binding.rme.internal.RMEBindingConstants.DataField;
import org.openhab.core.io.transport.serial.SerialPortManager;
import org.openhab.core.library.types.DecimalType;
import org.openhab.core.thing.ChannelUID;
import org.openhab.core.thing.Thing;
import org.openhab.core.types.Command;
+import org.openhab.core.util.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@Override
public void onDataReceived(String receivedLine) {
String line = StringUtils.chomp(receivedLine);
-
+ if (line == null) {
+ line = "";
+ }
// little hack to overcome Locale limits of the RME Rain Manager
// note to the attentive reader : should we add support for system
// locale's in the Type classes? ;-)