Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class License(license: CMsgClientLicenseList.License) {
/**
* Gets the payment method used when the license was created.
*/
val paymentMethod: EPaymentMethod? = EPaymentMethod.from(license.paymentMethod)
val paymentMethod: EPaymentMethod = EPaymentMethod.from(license.paymentMethod) ?: EPaymentMethod.None

/**
* Gets the license flags.
Expand All @@ -60,7 +60,7 @@ class License(license: CMsgClientLicenseList.License) {
/**
* Gets the type of the license.
*/
val licenseType: ELicenseType? = ELicenseType.from(license.licenseType)
val licenseType: ELicenseType = ELicenseType.from(license.licenseType) ?: ELicenseType.NoLicense

/**
* Gets the territory code of the license.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class PersonaStateCallback(
/**
* Gets the state.
*/
val state: EPersonaState? = EPersonaState.from(friend.personaState)
val state: EPersonaState = EPersonaState.from(friend.personaState) ?: EPersonaState.Offline

/**
* Gets the state flags.
Expand Down
Loading