bug solved: NullPointerException if parameter "fields" is NULL