Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be42388b authored by Feng Qian's avatar Feng Qian
Browse files

Fix a null pointer exception in DumpRenderTree (issue 1792567)

The first test causes NullPointerException in DumpRenderTree because dumpAsText
could return a null string.
parent 7a430cf1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -165,6 +165,7 @@ public class TestShellActivity extends Activity implements LayoutTestController
            if (mDialogStrings != null)
                os.write(mDialogStrings.toString().getBytes());
            mDialogStrings = null;
            if (webkitData != null)
                os.write(webkitData.getBytes());
            os.flush();
            os.close();