#261 fixed NPE in Constant check
Merge pull request #276 from krzyk/261

#276: pull request #261 fixed NPE in Constant check