fix null pointer bug with rule "a : a;"
Merge pull request #376 from parrt/master

fix null pointer bug with rule "a : a;"