fixes #7 - avoid NPE in views analysis