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

Commit 5006eb75 authored by Svetoslav's avatar Svetoslav Committed by Android (Google) Code Review
Browse files

Merge "Null not handled when parsing media size resource id attribute." into klp-dev

parents 0bab400b b206f127
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1036,8 +1036,9 @@ public final class PrintSpoolerService extends Service {
                    final int heightMils = Integer.parseInt(parser.getAttributeValue(null,
                            ATTR_HEIGHT_MILS));
                    String packageName = parser.getAttributeValue(null, ATTR_PACKAGE_NAME);
                    final int labelResId = Integer.parseInt(parser.getAttributeValue(null,
                            ATTR_LABEL_RES_ID));
                    String labelResIdString = parser.getAttributeValue(null, ATTR_LABEL_RES_ID);
                    final int labelResId = (labelResIdString != null)
                            ? Integer.parseInt(labelResIdString) : 0;
                    label = parser.getAttributeValue(null, ATTR_LABEL);
                    MediaSize mediaSize = new MediaSize(id, label, packageName, labelResId,
                                widthMils, heightMils);