mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
avoid NullPointerException
This commit is contained in:
@@ -385,7 +385,7 @@ public class NotificationCenter {
|
||||
if(dcMsg.getType() == DcMsg.DC_MSG_WEBXDC) {
|
||||
info = dcMsg.getWebxdcInfo();
|
||||
} else { // info message, get from parent xdc
|
||||
info = dcMsg.getParent().getWebxdcInfo();
|
||||
info = dcMsg.getParent() != null? dcMsg.getParent().getWebxdcInfo() : "";
|
||||
}
|
||||
final String name = JsonUtils.optString(info, "name");
|
||||
String shortLine = name.isEmpty()? text : (name + ": " + text);
|
||||
|
||||
Reference in New Issue
Block a user