Skip to content

Commit 6f6bd26

Browse files
author
kasemir
committed
EDM converter: Strip some prefs
1 parent cb7aa72 commit 6f6bd26

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/display/convert-edm/src/main/java/org/csstudio/display/converter/edm/ConverterPreferences.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2019-2022 Oak Ridge National Laboratory.
2+
* Copyright (c) 2019-202 Oak Ridge National Laboratory.
33
* All rights reserved. This program and the accompanying materials
44
* are made available under the terms of the Eclipse Public License v1.0
55
* which accompanies this distribution, and is available at
@@ -66,6 +66,7 @@ public FontMapping(final String pattern, final String font_name)
6666
logger.log(Level.WARNING, "Cannot parse font_mappings", ex);
6767
}
6868

69+
edm_paths_config = edm_paths_config.strip();
6970
if (! edm_paths_config.isEmpty())
7071
try
7172
{
@@ -76,8 +77,8 @@ public FontMapping(final String pattern, final String font_name)
7677
logger.log(Level.WARNING, "Cannot parse paths from " + edm_paths_config, ex);
7778
}
7879

79-
final String dir = prefs.get("auto_converter_dir");
80-
if (dir.isBlank())
80+
final String dir = prefs.get("auto_converter_dir").strip();
81+
if (dir.isEmpty())
8182
auto_converter_dir = null;
8283
else
8384
{

0 commit comments

Comments
 (0)