mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
GitPushNativeResult.java: fix NPE
java.lang.IllegalArgumentException: Argument for @NotNull parameter 'where' of com/intellij/openapi/util/text/StringUtil.containsIgnoreCase must not be null at com.intellij.openapi.util.text.StringUtil.$$$reportNull$$$0(StringUtil.java) at com.intellij.openapi.util.text.StringUtil.containsIgnoreCase(StringUtil.java) at git4idea.push.GitPushNativeResult.isNonFFUpdate(GitPushNativeResult.java:67) at git4idea.push.GitPushRepoResult.convertType(GitPushRepoResult.java:134) GitOrigin-RevId: ded691d7711fff4106f6dcb7dd13b303c928edb2
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ed3580c53e
commit
59cd1cbd87
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package git4idea.push;
|
||||
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
@@ -61,10 +61,10 @@ public class GitPushNativeResult {
|
||||
}
|
||||
|
||||
boolean isNonFFUpdate() {
|
||||
return myType == Type.REJECTED && myReason != null &&
|
||||
(StringUtil.containsIgnoreCase(myReason, NO_FF_REJECT_REASON) ||
|
||||
StringUtil.containsIgnoreCase(myReason, FETCH_FIRST_REASON)) ||
|
||||
StringUtil.containsIgnoreCase(myReason, FAILED_LOCK_REASON);
|
||||
if (myReason == null || myType != Type.REJECTED) return false;
|
||||
return StringUtil.containsIgnoreCase(myReason, NO_FF_REJECT_REASON) ||
|
||||
StringUtil.containsIgnoreCase(myReason, FETCH_FIRST_REASON) ||
|
||||
StringUtil.containsIgnoreCase(myReason, FAILED_LOCK_REASON);
|
||||
}
|
||||
|
||||
boolean isStaleInfo() {
|
||||
|
||||
Reference in New Issue
Block a user