why can state be null?