I don't think this line is really needed - it doesn't add any information.  If it did, text=NULL should be written as text = ''.  (NULL is a C++ concept).