}).start();
}
+ // connect, do the action (sync)
public void connect() {
try {
in = new BufferedReader(new InputStreamReader(s.getInputStream(),
NoSuchMethodException, ClassNotFoundException {
synchronized (lock) {
String rep = sendString(new Exporter().append(data).toString(true));
- return new Importer().read(rep).getValue();
+ if (rep != null) {
+ return new Importer().read(rep).getValue();
+ }
+
+ return null;
}
}