fix possible runtime exception

implement default ctor
add missing super
fix possible npe