Catch two NPEs

Caveat: 预设了schema