#261 fixed NPE in Constant check