From 21f4fab9ed08a40ec065b9199bf7c065c87b0be1 Mon Sep 17 00:00:00 2001 From: JaniruTEC Date: Fri, 9 Oct 2020 18:40:50 +0200 Subject: [PATCH] Fixed bug: Strange error message if no MPC was applicable --- .../main/java/org/cryptomator/common/vaults/AbstractVolume.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/commons/src/main/java/org/cryptomator/common/vaults/AbstractVolume.java b/main/commons/src/main/java/org/cryptomator/common/vaults/AbstractVolume.java index 199c576db..738118608 100644 --- a/main/commons/src/main/java/org/cryptomator/common/vaults/AbstractVolume.java +++ b/main/commons/src/main/java/org/cryptomator/common/vaults/AbstractVolume.java @@ -44,7 +44,7 @@ public abstract class AbstractVolume implements Volume { //SortedSet#stream() should return a sorted stream (that's what it's docs and the docs of #spliterator() say, even if they are not 100% clear for me.) //We want to keep that order, that's why we use ImmutableSet#toImmutableSet() to collect (even if it doesn't implement SortedSet, it's docs promise use encounter ordering.) String checked = Joiner.on(", ").join(checkedChoosers.stream().map((mpc) -> mpc.getClass().getTypeName()).collect(ImmutableSet.toImmutableSet())); - throw new InvalidMountPointException(String.format("No feasible MountPoint found! Checked %s", checked)); + throw new InvalidMountPointException(String.format("No feasible MountPoint found! Checked %s", checked.isBlank() ? "" : checked)); } protected void cleanupMountPoint() {