Skip to content

Commit 4ba46dc

Browse files
authored
Merge pull request #156 from Allen-18/master
temporary fixed error
2 parents 2064367 + 047c756 commit 4ba46dc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cryptography/lib/src/cryptography/cipher_wand.dart

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,11 @@ abstract class CipherWand extends Wand {
109109
try {
110110
return utf8.decode(clearText);
111111
} finally {
112-
// Cut the amount of possibly sensitive data in the heap.
113-
// This should be a cheap operation relative to decryption.
114-
clearText.fillRange(0, clearText.length, 0);
112+
try {
113+
// Cut the amount of possibly sensitive data in the heap.
114+
// This should be a cheap operation relative to decryption.
115+
clearText.fillRange(0, clearText.length, 0);
116+
} catch (_) {}
115117
}
116118
}
117119

0 commit comments

Comments
 (0)