bes: fix npe
Calling RuntimeException.getCause() is clearly a bug in the
BuildEventServiceTransport implementation that unfortunately
hides the actual RuntimeException that's triggered due to
another bug.
RELNOTES:
@@ -418,7 +418,7 @@ public class BuildEventServiceTransport implements BuildEventTransport {
failCloseFuture((Exception) e.getCause());
}
} catch (RuntimeException e) {
- failCloseFuture((Exception) e.getCause());
+ failCloseFuture(e);
logError(e, "BES upload failed due to a RuntimeException. This is a bug.");
throw e;
} finally {
