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

Commit 2084fb8c authored by Chris Tate's avatar Chris Tate Committed by android-build-merger
Browse files

Merge "Don\'t call .toString() on potentially null CharSequence" into nyc-dev am: b1827357

am: 7317034d

* commit '7317034d':
  Don't call .toString() on potentially null CharSequence

Change-Id: I7a9bea266fa3748e212384165623acc561fa2a81
parents 8b1f76a8 7317034d
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -292,8 +292,10 @@ public class ResourcesImpl {
            return mAssets.openNonAsset(value.assetCookie, value.string.toString(),
                    AssetManager.ACCESS_STREAMING);
        } catch (Exception e) {
            NotFoundException rnf = new NotFoundException("File " + value.string.toString() +
                    " from drawable resource ID #0x" + Integer.toHexString(id));
            // Note: value.string might be null
            NotFoundException rnf = new NotFoundException("File "
                    + (value.string == null ? "(null)" : value.string.toString())
                    + " from drawable resource ID #0x" + Integer.toHexString(id));
            rnf.initCause(e);
            throw rnf;
        }