diff --git src/wp-includes/comment-template.php src/wp-includes/comment-template.php
index ca0a8de714..6ddca706bb 100644
--- src/wp-includes/comment-template.php
+++ src/wp-includes/comment-template.php
@@ -1641,6 +1641,10 @@ function get_comment_reply_link( $args = array(), $comment = null, $post = null
 
 	$comment = get_comment( $comment );
 
+	if ( empty( $comment ) ) {
+		return;
+	}
+
 	if ( empty( $post ) ) {
 		$post = $comment->comment_post_ID;
 	}
diff --git tests/phpunit/tests/comment/getCommentReplyLink.php tests/phpunit/tests/comment/getCommentReplyLink.php
index a9645fc4aa..a474077f7f 100644
--- tests/phpunit/tests/comment/getCommentReplyLink.php
+++ tests/phpunit/tests/comment/getCommentReplyLink.php
@@ -26,4 +26,30 @@ class Tests_Comment_GetCommentReplyLink extends WP_UnitTestCase {
 
 		$this->assertNull( get_comment_reply_link( $args ) );
 	}
+
+	/**
+	 * @ticket 41846
+	 */
+	public function test_should_return_null_when_depth_less_than_max_depth_and_comment_null_and_no_current_global_comment() {
+
+		$args = array(
+			'depth'     => 1,
+			'max_depth' => 2,
+		);
+
+		$comment = null;
+
+		// store current global comment
+		$tmp = $GLOBALS['comment'];
+
+		// remove global current comment
+		unset( $GLOBALS['comment'] );
+
+		$this->assertFalse( isset( $GLOBALS['comment'] ) );
+				$this->assertNull( get_comment_reply_link( $args ), $comment );
+
+		// restore current global comment
+		$GLOBALS['comment'] = $tmp;
+	}
+
 }
