After clearShape,currentshape should not be null