Changeset 6962 in josm for trunk/src/org/openstreetmap/josm/tools/Utils.java
- Timestamp:
- 2014-04-07T23:49:09+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Utils.java
r6889 r6962 804 804 */ 805 805 public static String execOutput(List<String> command) throws IOException { 806 if (Main.isDebugEnabled()) { 807 Main.debug(join(" ", command)); 808 } 806 809 Process p = new ProcessBuilder(command).start(); 807 810 BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream())); … … 817 820 } 818 821 Utils.close(input); 819 return all .toString();822 return all != null ? all.toString() : null; 820 823 } 821 824
Note:
See TracChangeset
for help on using the changeset viewer.