Sanitize check for null?

What's the idea of the sanitize function? It looks like it's going to quote only nullvalue? (Sorry for .cs file in this pull request, just ignore that one).

     private String sanitize(String value) {
        if(value != null)   // return if null or not if null?
            return value;
         return Pattern.quote(value);
     }