Modified weegschaalcontroller - solved null pointer