[#1881] Use correct field name in NullPointerException