Author: toad
Date: 2007-12-14 14:10:47 +0000 (Fri, 14 Dec 2007)
New Revision: 16527
Modified:
trunk/freenet/src/freenet/node/PeerNode.java
Log:
Don't look for the ARK URI if there is no ARK number.
Modified: trunk/freenet/src/freenet/node/PeerNode.java
===================================================================
--- trunk/freenet/src/freenet/node/PeerNode.java 2007-12-14 14:09:30 UTC
(rev 16526)
+++ trunk/freenet/src/freenet/node/PeerNode.java 2007-12-14 14:10:47 UTC
(rev 16527)
@@ -628,13 +628,13 @@
// this is the number of the ref we are parsing.
// we want the number of the next edition.
// on startup we want to fetch the old edition
in case there's been a corruption.
- }
String arkPubKey = fs.get("ark.pubURI");
if(arkPubKey != null) {
FreenetURI uri = new FreenetURI(arkPubKey);
ClientSSK ssk = new ClientSSK(uri);
ark = new USK(ssk, arkNo);
}
+ } else return false;
} catch(MalformedURLException e) {
Logger.error(this, "Couldn't parse ARK info for " +
this + ": " + e, e);
} catch(NumberFormatException e) {