diff options
Diffstat (limited to 'juick-server/src/main/java/com')
-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 { |