skype-java-api
skype-java-api copied to clipboard
MacOS X: Skype.getAllChats() return chat with id "9901 Internal error"
I'm doing the next: Chat[] allChats = Skype.getAllChats(); for (Chat chat : allChats) { System.out.println("chatid:"+chat.getId()); if(chat.getAllMembers().length>2) {//error And getting the error
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -6 at java.lang.String.substring(String.java:1937) at java.lang.String.substring(String.java:1904) at com.skype.Chat.getUsersProperty(Chat.java:414) at com.skype.Chat.getAllMembers(Chat.java:340) at com.evluhin.skype.publisher.server.HistoryExport.main(HistoryExport.java:18)
Chat ID in this case: "chatid:9901 Internal error".
PS: Skype.getAllChats() got response header: 9901 Internal error.
I can confirm the bug. Skype version 6.4.0.833 and 6.3.0.602 running on latest OSX.
OK, small update: the getAllChats() call works every ~10 times I start the app.