Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Wolf2019-11-03 03:50:51 -0500
committerThomas Wolf2019-11-03 03:50:51 -0500
commit0ba8837769c4ee5913dd6d7238ee0affb2f62098 (patch)
tree6dff85e211348f444c8a113656b3cc330a843904
parent6564228dd94b589315f6af49bd74a207bc98208d (diff)
downloadegit-0ba8837769c4ee5913dd6d7238ee0affb2f62098.tar.gz
egit-0ba8837769c4ee5913dd6d7238ee0affb2f62098.tar.xz
egit-0ba8837769c4ee5913dd6d7238ee0affb2f62098.zip
Fix CCE in CommitMessageVieweer when preferences change
When the preference is reset to the default value, the event may contain a string as new value. Don't assume it was a Boolean. Bug: 552640 Change-Id: I6104256610bcf2c2cdaa3c6914c3c29aca993788 Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/CommitMessageViewer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/CommitMessageViewer.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/CommitMessageViewer.java
index 7851ea17f..336e10d50 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/CommitMessageViewer.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/CommitMessageViewer.java
@@ -127,7 +127,7 @@ class CommitMessageViewer extends HyperlinkSourceViewer {
String property = event.getProperty();
if (UIPreferences.RESOURCEHISTORY_SHOW_COMMENT_FILL
.equals(property)) {
- setFill(((Boolean) event.getNewValue()).booleanValue());
+ setFill(Boolean.parseBoolean(event.getNewValue().toString()));
} else if (UIPreferences.HISTORY_SHOW_TAG_SEQUENCE.equals(property)
|| UIPreferences.HISTORY_SHOW_BRANCH_SEQUENCE
.equals(property)

Back to the top