fixed NullPointer when viewing equipment