Merge branch 'room-hotfix-null-check' into 'master'
[Room] Add missing null check See merge request famedly/famedlysdk!128
This commit is contained in:
commit
c38f041a5a
|
@ -203,7 +203,7 @@ class Room {
|
||||||
!canonicalAlias.isEmpty &&
|
!canonicalAlias.isEmpty &&
|
||||||
canonicalAlias.length > 3)
|
canonicalAlias.length > 3)
|
||||||
return canonicalAlias.substring(1, canonicalAlias.length).split(":")[0];
|
return canonicalAlias.substring(1, canonicalAlias.length).split(":")[0];
|
||||||
if (mHeroes.length > 0 && mHeroes.any((h) => h.isNotEmpty)) {
|
if (mHeroes != null && mHeroes.length > 0 && mHeroes.any((h) => h.isNotEmpty)) {
|
||||||
String displayname = "";
|
String displayname = "";
|
||||||
for (int i = 0; i < mHeroes.length; i++) {
|
for (int i = 0; i < mHeroes.length; i++) {
|
||||||
if (mHeroes[i].isEmpty) continue;
|
if (mHeroes[i].isEmpty) continue;
|
||||||
|
|
Loading…
Reference in a new issue