GoogleCloudPlatform / appengine-plugins

A client Java library to manage App Engine Java applications for any project that performs App Engine Java application management. For example, the Maven, Gradle and Eclipse App Engine plugins, custom user tools, etc.
Apache License 2.0
40 stars 26 forks source link

Bugfix: fix `StringIndexOutOfBoundsException` from Crash report. #890

Closed ruomengz closed 2 years ago

ruomengz commented 2 years ago

Fix following exception:

    java.lang.StringIndexOutOfBoundsException: begin 1, end 0, length 1
            at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3319)
            at java.base/java.lang.String.substring(String.java:1874)
            at com.google.cloud.tools.appengine.operations.cloudsdk.PathResolver.unquote(PathResolver.java:119)
            at com.google.cloud.tools.appengine.operations.cloudsdk.PathResolver.getLocationsFromPath(PathResolver.java:93)
chanseokoh commented 2 years ago

@mpeddada1 @elefeint can someone in the team review this quickly?