What about if `resourcePackage` is null?