Commits

Anonymous committed 55fbaa7

fix NPE

Comments (0)

Files changed (1)

agent/src/jetbrains/buildServer/artifactsMirror/AgentTorrentsManager.java

 
   private boolean initSettings() {
     try {
-      myTrackerAnnounceUrl = new URI(myTrackerManager.getAnnounceUrl());
+      String announceUrl = myTrackerManager.getAnnounceUrl();
+      if (announceUrl == null) return false;
+      myTrackerAnnounceUrl = new URI(announceUrl);
     } catch (URISyntaxException e) {
       LOG.warn(e.toString(), e);
       return false;