From 4b77a5d15f4e99280812b2920dfd453057941f06 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Wed, 19 Sep 2018 12:47:32 +0300 Subject: [PATCH] Fix String.contains. Fix crashing in rare cases or improper use of JSO --- .../src/main/java/org/teavm/classlib/java/lang/TString.java | 3 ++- .../src/main/java/org/teavm/jso/impl/JSValueMarshaller.java | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/classlib/src/main/java/org/teavm/classlib/java/lang/TString.java b/classlib/src/main/java/org/teavm/classlib/java/lang/TString.java index fe0b43238..c9a49284c 100644 --- a/classlib/src/main/java/org/teavm/classlib/java/lang/TString.java +++ b/classlib/src/main/java/org/teavm/classlib/java/lang/TString.java @@ -413,8 +413,9 @@ public class TString extends TObject implements TSerializable, TComparable