Should not call inherited method
when class nothing
Merge pull request #2310 from ksss/class-segv

Should not call inherited method when class nothing