Class can't be null for matchable inputs