{"record":{"id":"5776920e7b754a19","repo":"microg/GmsCore","slug":"invalid-size","errorCode":null,"errorMessage":"Invalid Size: \"","messagePattern":"Invalid Size: \"","errorType":"validation","errorClass":"NumberFormatException","httpStatus":null,"severity":"error","filePath":"play-services-base/src/main/java/com/google/android/gms/common/images/Size.java","lineNumber":95,"sourceCode":"    /**\n     * Parses the specified string as a size value.\n     * <p>\n     * The ASCII characters {@code \\}{@code u002a} ('*') and {@code \\}{@code u0078} ('x') are recognized as separators between the width and height.\n     * <p>\n     * For any {@code Size s}: {@code Size.parseSize(s.toString()).equals(s)}. However, the method also handles sizes expressed in the following forms:\n     * <p>\n     * \"width{@code x}height\" or \"width{@code *}height\" => new Size(width, height), where width and height are string integers potentially containing a sign, such as \"-10\", \"+7\" or \"5\".\n     *\n     * @param string the string representation of a size value.\n     * @return the size value represented by {@code string}.\n     * @throws NumberFormatException if {@code string} cannot be parsed as a size value.\n     * @throws NullPointerException  if {@code string} was null\n     */\n    public static Size parseSize(String string) {\n        if (string == null) throw new NullPointerException(\"string must not be null\");\n        int split = string.indexOf('*');\n        if (split < 0) split = string.indexOf('x');\n        if (split < 0) throw new NumberFormatException(\"Invalid Size: \\\"\" + string + \"\\\"\");\n        return new Size(Integer.parseInt(string.substring(0, split)), Integer.parseInt(string.substring(split + 1)));\n    }\n\n    /**\n     * Return the size represented as a string with the format {@code \"WxH\"}\n     * @return string representation of the size\n     */\n    @Override\n    public String toString() {\n        return width + \"x\" + height;\n    }\n}\n","sourceCodeStart":77,"sourceCodeEnd":108,"githubUrl":"https://github.com/microg/GmsCore/blob/157c9d86ac46c195a86c2f15ab55c84036223f95/play-services-base/src/main/java/com/google/android/gms/common/images/Size.java#L77-L108","documentation":"Number-format failure in Size.parseSize: the input string has no valid 'x'/'*' separator or its numeric parts do not parse as integers. The offending string is quoted in the message; this is a malformed-input validation error.","triggerScenarios":"Thrown at play-services-base/src/main/java/com/google/android/gms/common/images/Size.java:95 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the string is in 'widthxheight' or 'width*height' form with valid integers","Validate/sanitize the string before parsing and fall back to a default Size on failure"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"157c9d86ac46c195a86c2f15ab55c84036223f95","analyzedAt":"2026-09-06T17:27:33.892Z","contentChangedAt":"2026-09-06T17:27:33.892Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}