2 messages in net.java.dev.jna.users[jna-users] Pointer.NULL
FromSent OnAttachments
rzoDec 27, 2008 7:18 am 
Timothy WallDec 27, 2008 8:56 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[jna-users] Pointer.NULLActions...
From:rzo (rz@gmx.de)
Date:Dec 27, 2008 7:18:54 am
List:net.java.dev.jna.users

Hello,

currently: Pointer.NULL = null

I think this is misleading.

More appropriate would be

Pointer.NULL = new Pointer(0)

This would allow:

Pointer p = someMethod(); if (Pointer.NULL.equals(p)) sayError();

comments ?

- Ron