Fix problem with revisionInfo: fails badly for a developer with turtle SVN -- change it to fail gracefully.

This commit is contained in:
jeb228 2010-11-09 18:12:53 +00:00
parent 939b33e42b
commit b3d7f5469f
2 changed files with 3 additions and 2 deletions

View file

@ -25,7 +25,8 @@ public class InfoResponseParser {
public InfoResponseParser(String infoResponse) {
this.infoResponse = infoResponse;
System.err.println("response from svn info: '"
+ infoResponse.replace("\n", "\\n") + "'");
+ ((infoResponse == null) ? null : infoResponse.replace("\n",
"\\n")) + "'");
}
public String parse() {

View file

@ -137,7 +137,7 @@ public class RevisionInfoBuilder {
}
private String buildDummyInfo() {
return buildLine("unknown", "unknown");
return buildLine(null, null);
}
private String buildLine(String release, String revision) {