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

Commit be74bdd2 authored by Stephen Hines's avatar Stephen Hines
Browse files

We should not throw for non-fatal errors.

BUG=5955072

Change-Id: I731242805957a057aaff1ba96a58c69d6e474a59
parent cc2daede
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
/*
 * Copyright (C) 2008 The Android Open Source Project
 * Copyright (C) 2008-2012 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
@@ -837,7 +837,8 @@ public class RenderScript {
                        mRS.mErrorCallback.mErrorNum = subID;
                        mRS.mErrorCallback.run();
                    } else {
                        throw new RSRuntimeException("Received error num " + subID + ", details: " + e);
                        // Do not throw here. In these cases, we do not have
                        // a fatal error.
                    }
                    continue;
                }