mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-24 19:56:00 +00:00
Fix internal-only crash when submitting a debuglog during registration.
This commit is contained in:
@@ -7,6 +7,7 @@ import androidx.annotation.NonNull;
|
||||
|
||||
import org.signal.core.util.AsciiArt;
|
||||
import org.thoughtcrime.securesms.database.SignalDatabase;
|
||||
import org.thoughtcrime.securesms.keyvalue.SignalStore;
|
||||
|
||||
/**
|
||||
* Renders data pertaining to sender key. While all private info is obfuscated, this is still only intended to be printed for internal users.
|
||||
@@ -23,8 +24,12 @@ public class LogSectionSenderKey implements LogSection {
|
||||
StringBuilder builder = new StringBuilder();
|
||||
|
||||
builder.append("--- Sender Keys Created By This Device").append("\n\n");
|
||||
try (Cursor cursor = SignalDatabase.senderKeys().getAllCreatedBySelf()) {
|
||||
builder.append(AsciiArt.tableFor(cursor)).append("\n\n");
|
||||
if (SignalStore.account().getAci() != null){
|
||||
try (Cursor cursor = SignalDatabase.senderKeys().getAllCreatedBySelf()) {
|
||||
builder.append(AsciiArt.tableFor(cursor)).append("\n\n");
|
||||
}
|
||||
} else {
|
||||
builder.append("<no ACI assigned yet>").append("\n\n");
|
||||
}
|
||||
|
||||
builder.append("--- Sender Key Shared State").append("\n\n");
|
||||
|
||||
Reference in New Issue
Block a user