Skip to content

Commit

Permalink
Fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
HosseinYousefi committed Mar 6, 2024
1 parent 4324a4d commit d53c7f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pkgs/jni/test/jarray_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,9 @@ void run({required TestRunnerCallback testRunner}) {
using((arena) {
final array = JArray(JObject.type, 3)..releasedBy(arena);
expect(array.length, 3);
expect(array[0].reference, nullptr);
expect(array[1].reference, nullptr);
expect(array[2].reference, nullptr);
expect(array[0].reference.pointer, nullptr);
expect(array[1].reference.pointer, nullptr);
expect(array[2].reference.pointer, nullptr);
});
});
testRunner("Java 2d array", () {
Expand Down
2 changes: 1 addition & 1 deletion pkgs/jnigen/example/pdfbox_plugin/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class PDFFileInfo {
/// Converts JString to dart string and deletes the original.
/// Also handles the case where the underlying string is Null.
String _fromJavaStr(JString jstr) {
if (jstr.reference == nullptr) {
if (jstr.reference.pointer == nullptr) {
return '(null)';
}
return jstr.toDartString(releaseOriginal: true);
Expand Down

0 comments on commit d53c7f2

Please sign in to comment.