am e05bc81c
: Merge "We should not throw for non-fatal errors."
* commit 'e05bc81c19838801b91de2642dc275a16dd7cf71': We should not throw for non-fatal errors.
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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.
|
||||
@ -848,7 +848,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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user