diff options
Diffstat (limited to 'org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/FileUtil.java')
-rw-r--r-- | org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/FileUtil.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/FileUtil.java b/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/FileUtil.java index ac7056114..3335e6aca 100644 --- a/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/FileUtil.java +++ b/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/FileUtil.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2005, 2011 IBM Corporation and others. + * Copyright (c) 2005, 2015 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -63,7 +63,7 @@ public class FileUtil { out.write(buffer, 0, num); } String result = new String(out.toByteArray(), "UTF-8"); - if (result != null) { + if (result.length() > 0) { // filter windows-specific newline result = result.replaceAll("\r", ""); } |