diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2015-12-10 12:21:13 +0100 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2015-12-10 12:21:13 +0100 |
commit | a5d7a8ddf2c0fd03b386284bf0cdde9aba8dcee3 (patch) | |
tree | 24e95be6e27a40508b9c2a7d54b4eea13a16eea4 /OpenKeychain/src | |
parent | ab66c687715665481fbd3bc18683a0d760f898e4 (diff) | |
parent | 2e8efbee853ad6f5addda29ea3df08f2bab5c4b6 (diff) | |
download | open-keychain-a5d7a8ddf2c0fd03b386284bf0cdde9aba8dcee3.tar.gz open-keychain-a5d7a8ddf2c0fd03b386284bf0cdde9aba8dcee3.tar.bz2 open-keychain-a5d7a8ddf2c0fd03b386284bf0cdde9aba8dcee3.zip |
Merge pull request #1621 from TedaLIEz/master
Issue#1605 solved
Diffstat (limited to 'OpenKeychain/src')
-rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/results/OperationResult.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/results/OperationResult.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/results/OperationResult.java index 9877f2318..3f90a08c2 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/results/OperationResult.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/results/OperationResult.java @@ -1028,7 +1028,12 @@ public abstract class OperationResult implements Parcelable { for (LogEntryParcel entry : this) { log.append(entry.getPrintableLogEntry(resources, indent)).append("\n"); } - return log.toString().substring(0, log.length() - 1); // get rid of extra new line + if (log.length() >= 1) { + return log.toString().substring(0, log.length() - 1); // get rid of extra new line + } else { + return log.toString(); + } + } } |