提交 ca9ecb24 编写于 作者: K kohsuke

fixed NPE.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2321 71c3de6d-444a-0410-be80-ed276b4c234a
上级 3738e822
......@@ -178,7 +178,10 @@ public class Util {
* null if there seems to be no error code or if the platform is not Win32.
*/
public static String getWin32ErrorMessage(IOException e) {
Matcher m = errorCodeParser.matcher(e.getMessage());
String msg = e.getMessage();
if(msg==null)
return null; // no message
Matcher m = errorCodeParser.matcher(msg);
if(!m.matches())
return null; // failed to parse
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册