Fixed identity exception
This commit is contained in:
parent
63b55c0e25
commit
e2a5ff8f8d
1 changed files with 8 additions and 3 deletions
|
@ -41,9 +41,14 @@ namespace TSIdentityHelper {
|
|||
|
||||
export function unwarpString(str) : string {
|
||||
if(str == "") return "";
|
||||
let message: string = Pointer_stringify(str);
|
||||
functionDestroyString(str);
|
||||
return message;
|
||||
try {
|
||||
let message: string = Pointer_stringify(str);
|
||||
functionDestroyString(str);
|
||||
return message;
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
export function loadIdentity(key: string) : TeamSpeakIdentity {
|
||||
|
|
Loading…
Add table
Reference in a new issue