projects
/
jSite.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Throw an exception when the node is not connected.
[jSite.git]
/
src
/
de
/
todesbaum
/
jsite
/
application
/
Freenet7Interface.java
diff --git
a/src/de/todesbaum/jsite/application/Freenet7Interface.java
b/src/de/todesbaum/jsite/application/Freenet7Interface.java
index
a271f6b
..
ae5c967
100644
(file)
--- a/
src/de/todesbaum/jsite/application/Freenet7Interface.java
+++ b/
src/de/todesbaum/jsite/application/Freenet7Interface.java
@@
-142,7
+142,7
@@
public class Freenet7Interface {
*/
public String[] generateKeyPair() throws IOException {
if (!isNodePresent()) {
*/
public String[] generateKeyPair() throws IOException {
if (!isNodePresent()) {
-
return null
;
+
throw new IOException("Node is offline.")
;
}
GenerateSSK generateSSK = new GenerateSSK();
Client client = new Client(connection, generateSSK);
}
GenerateSSK generateSSK = new GenerateSSK();
Client client = new Client(connection, generateSSK);