Skip to content

Commit 4ba03af

Browse files
JulianGCalderongabrielbosio
authored andcommitted
Remove panic (#1113)
1 parent 8a17707 commit 4ba03af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/values.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ impl Value {
632632
.byte_sub(refcount_offset)
633633
.cast::<u32>()
634634
.as_mut()
635-
.unwrap();
635+
.to_native_assert_error("array data pointer should not be null")?;
636636
if should_drop {
637637
*ref_count -= 1;
638638
}

0 commit comments

Comments
 (0)