when the context can be null? can you add a comment?