Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public String getText(Property property) throws Exception {
return element.toString();
}
// unknown value
return null;
return "";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2011, 2024 Google, Inc. and others.
* Copyright (c) 2011, 2026 Google, Inc. and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
Expand Down Expand Up @@ -96,7 +96,7 @@ public void test_getText_noValue() throws Exception {
GenericProperty property = (GenericProperty) panel.getPropertyByTitle("foo");
EnumPropertyEditor editor = (EnumPropertyEditor) property.getEditor();
// text
assertNull(editor.getText(property));
assertEquals("", editor.getText(property));
assertNull(editor.getClipboardSource(property));
}

Expand Down
Loading