We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33852c2 commit 5f77801Copy full SHA for 5f77801
src/main/scala/com/codacy/client/bitbucket/util/Implicits.scala
@@ -18,7 +18,7 @@ object Implicits {
18
19
implicit class URIQueryParam(uri: URI) {
20
def addQuery(q: String): URI = {
21
- val newQuery = if (uri.getQuery == null) {
+ val newQuery = if (Option.apply(uri.getQuery).isEmpty) {
22
q
23
} else {
24
uri.getQuery + "&" + q
0 commit comments