diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2013-08-14 17:58:33 +0200 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2013-08-14 17:58:33 +0200 |
| commit | a5f3c56e00431215de4a0e1c3528c0cb60e4deb2 (patch) | |
| tree | 144ec16cfbf7113468d0ee922a6974d86ff95bc2 | |
| parent | 7337111e3264dc3e0e1206dd6b06b9eb65a1c408 (diff) | |
| download | cgeo-a5f3c56e00431215de4a0e1c3528c0cb60e4deb2.zip cgeo-a5f3c56e00431215de4a0e1c3528c0cb60e4deb2.tar.gz cgeo-a5f3c56e00431215de4a0e1c3528c0cb60e4deb2.tar.bz2 | |
fix broken tests
| -rw-r--r-- | main/src/cgeo/geocaching/utils/UncertainProperty.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/utils/UncertainProperty.java b/main/src/cgeo/geocaching/utils/UncertainProperty.java index f696098..5f86662 100644 --- a/main/src/cgeo/geocaching/utils/UncertainProperty.java +++ b/main/src/cgeo/geocaching/utils/UncertainProperty.java @@ -25,9 +25,12 @@ public class UncertainProperty<T> { } public UncertainProperty<T> getMergedProperty(final UncertainProperty<T> other) { - if (other == null) { + if (null == other || null == other.value) { return this; } + if (null == this.value) { + return other; + } if (other.certaintyLevel > certaintyLevel) { return other; } |
