Index: /trunk/FACT++/src/InterpreterV8.cc
===================================================================
--- /trunk/FACT++/src/InterpreterV8.cc	(revision 14561)
+++ /trunk/FACT++/src/InterpreterV8.cc	(revision 14562)
@@ -762,4 +762,17 @@
     ret->Set(String::New("time"),    date,                          ReadOnly);
 
+    // If no event was received (usually a disconnection event in
+    // the context of FACT++), no data is returned
+    if (evt->IsEmpty())
+        return ret;
+
+    // If valid data was received, but the size was zero, then
+    // null is returned as data
+    if (evt->GetSize()==0)
+    {
+        ret->Set(String::New("data"), Null(), ReadOnly);
+        return ret;
+    }
+
     typedef boost::char_separator<char> separator;
     const boost::tokenizer<separator> tokenizer(evt->GetFormat(), separator(";:"));
