Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a667ff30 authored by Glenn Kasten's avatar Glenn Kasten
Browse files

Explicitly compare raw pointers to NULL

Change-Id: If76a15509d4121e391e28f26ca273cc00552efa8
parent 474daa2b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -95,7 +95,7 @@ static void recorderCallback(int event, void* user, void *info) {
    switch (event) {
    case AudioRecord::EVENT_MARKER: {
        JNIEnv *env = AndroidRuntime::getJNIEnv();
        if (user && env) {
        if (user != NULL && env != NULL) {
            env->CallStaticVoidMethod(
                callbackInfo->audioRecord_class,
                javaAudioRecordFields.postNativeEventInJava,
@@ -109,7 +109,7 @@ static void recorderCallback(int event, void* user, void *info) {

    case AudioRecord::EVENT_NEW_POS: {
        JNIEnv *env = AndroidRuntime::getJNIEnv();
        if (user && env) {
        if (user != NULL && env != NULL) {
            env->CallStaticVoidMethod(
                callbackInfo->audioRecord_class,
                javaAudioRecordFields.postNativeEventInJava,
+2 −2
Original line number Diff line number Diff line
@@ -134,7 +134,7 @@ static void audioCallback(int event, void* user, void *info) {
    switch (event) {
    case AudioTrack::EVENT_MARKER: {
        JNIEnv *env = AndroidRuntime::getJNIEnv();
        if (user && env) {
        if (user != NULL && env != NULL) {
            env->CallStaticVoidMethod(
                callbackInfo->audioTrack_class,
                javaAudioTrackFields.postNativeEventInJava,
@@ -148,7 +148,7 @@ static void audioCallback(int event, void* user, void *info) {

    case AudioTrack::EVENT_NEW_POS: {
        JNIEnv *env = AndroidRuntime::getJNIEnv();
        if (user && env) {
        if (user != NULL && env != NULL) {
            env->CallStaticVoidMethod(
                callbackInfo->audioTrack_class,
                javaAudioTrackFields.postNativeEventInJava,