Fix NPE in CheckSideEffects
Merge pull request #564 from ChadKillingsworth/master

Fix NPE in CheckSideEffects