aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-02-09 14:55:23 +0300
committerGravatar Vitaly Takmazov2018-02-09 14:55:23 +0300
commitc04eb6d3769f5a52372b560160147f7acc7079e8 (patch)
treea420e3b834f9e7d4fa2e404894bcba3b67e1f40a /juick-server/src/main/java/com/juick
parenteb8c9d95bfbd7e664c9de2767850ec4c465b520b (diff)
server: add some tests
Diffstat (limited to 'juick-server/src/main/java/com/juick')
-rw-r--r--juick-server/src/main/java/com/juick/server/VKWallManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/server/VKWallManager.java b/juick-server/src/main/java/com/juick/server/VKWallManager.java
index 364087eb..5c0fee81 100644
--- a/juick-server/src/main/java/com/juick/server/VKWallManager.java
+++ b/juick-server/src/main/java/com/juick/server/VKWallManager.java
@@ -43,7 +43,7 @@ public class VKWallManager {
serviceUser = userService.getUserByName(serviceUsername);
TransportClient transportClient = HttpTransportClient.getInstance();
vk = new VkApiClient(transportClient);
- Pair<String, String> tokens = crosspostService.getVkTokens(serviceUser.getUid()).get();
+ Pair<String, String> tokens = crosspostService.getVkTokens(serviceUser.getUid()).orElse(Pair.of("0", "0"));
actor = new UserActor(Integer.valueOf(tokens.getLeft()), tokens.getRight());
}
public void post(String status, String link) throws ClientException, ApiException {