Skip to content

Commit 3f6d27a

Browse files
committed
check with Pointer.NULL
1 parent c30e14f commit 3f6d27a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/org/freedesktop/gstreamer/lowlevel/GValueAPI.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ public static final class GValueArray extends com.sun.jna.Structure {
242242
public volatile int n_prealloced;
243243

244244
private boolean ownsMemory;
245-
private static final Pointer NULL_POINTER = new Pointer(0);
245+
private static final Pointer NO_MEMORY_POINTER = new Pointer(0);
246246

247247
public GValueArray() {
248248
this(0);
@@ -255,7 +255,7 @@ public GValueArray(int n_prealloced) {
255255

256256
public GValueArray(Pointer pointer) {
257257
super(pointer);
258-
if (pointer != null && !NULL_POINTER.equals(pointer))
258+
if (pointer != Pointer.NULL && !NO_MEMORY_POINTER.equals(pointer))
259259
n_values = pointer.getInt(0);
260260
}
261261

0 commit comments

Comments
 (0)