From 994f26b504d6696d260affd960b1c7978f38bf12 Mon Sep 17 00:00:00 2001 From: julioc-p <14-10820@usb.ve> Date: Thu, 12 Sep 2024 16:53:08 +0200 Subject: [PATCH] take out assert of abstract class --- .../bitbucketpushandpullrequest/BitBucketPPRTrigger.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/jenkins/plugins/bitbucketpushandpullrequest/BitBucketPPRTrigger.java b/src/main/java/io/jenkins/plugins/bitbucketpushandpullrequest/BitBucketPPRTrigger.java index cd8aabc..2f58d31 100644 --- a/src/main/java/io/jenkins/plugins/bitbucketpushandpullrequest/BitBucketPPRTrigger.java +++ b/src/main/java/io/jenkins/plugins/bitbucketpushandpullrequest/BitBucketPPRTrigger.java @@ -201,7 +201,7 @@ private void checkLocalPropagationUrl(BitBucketPPRAction bitBucketPPRAction) { if (bitBucketPPRAction == null) { return; } - assert bitBucketPPRAction instanceof BitBucketPPRActionAbstract; + if (!isEmpty(propagationUrl)) { BitBucketPPRActionAbstract bitBucketPPRActionAbstract = (BitBucketPPRActionAbstract) bitBucketPPRAction;