diff options
author | Vitaly Takmazov | 2018-02-09 14:55:23 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-02-09 14:55:23 +0300 |
commit | c04eb6d3769f5a52372b560160147f7acc7079e8 (patch) | |
tree | a420e3b834f9e7d4fa2e404894bcba3b67e1f40a /juick-server/src/main | |
parent | eb8c9d95bfbd7e664c9de2767850ec4c465b520b (diff) |
server: add some tests
Diffstat (limited to 'juick-server/src/main')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/VKWallManager.java | 2 |
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 { |