Index: /trunk/FACT++/src/rootifysql.cc
===================================================================
--- /trunk/FACT++/src/rootifysql.cc	(revision 18537)
+++ /trunk/FACT++/src/rootifysql.cc	(revision 18538)
@@ -258,4 +258,5 @@
 
     // ---------------------- Fill TTree with DB data --------------------------
+    size_t skip = 0;
     for (auto row=res.begin(); row<res.end(); row++)
     {
@@ -273,5 +274,8 @@
 
             if (!ignore && col->is_null())
-                break;
+            {
+                skip++;
+                break;
+            }
 
             switch (typ[idx])
@@ -311,5 +315,10 @@
 
     if (verbose>0)
+    {
+        if (skip>0)
+            cout << skip << " rows skipped due to NULL field." << endl;
+
         cout << ttree->GetEntries() << " rows filled into tree." << endl;
+    }
 
     ttree->Write();
