Fix npe when parsing lock node