blocking-handle NullPointerException in resize()