Skip to content

Commit de0502d

Browse files
SessionHero01SessionHero01
authored andcommitted
Fix crash
1 parent dc4302a commit de0502d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/main/cpp/user_profile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ extern "C"
189189
JNIEXPORT jobject JNICALL
190190
Java_network_loki_messenger_libsession_1util_UserProfile_getProConfig(JNIEnv *env, jobject thiz) {
191191
auto profile = ptrToProfile(env, thiz)->get_pro_config();
192-
if (profile) {
192+
if (!profile) {
193193
return nullptr;
194194
}
195195

0 commit comments

Comments
 (0)