Skip to content

Commit 3ce89fe

Browse files
committed
add null detection
1 parent 43167f6 commit 3ce89fe

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

sjfirebase/tools/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from jnius import autoclass
2+
3+
4+
def is_jnull(obj):
5+
Objects = autoclass("java.util.Objects")
6+
return Objects.isNull(obj)

0 commit comments

Comments
 (0)