aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick
diff options
context:
space:
mode:
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 364087eb9..5c0fee814 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 {