Add assertions before pointer access (#257)

2 files changed