Skip to content

Conversation

@maskit
Copy link
Member

@maskit maskit commented Sep 29, 2016

Motivation

The condition is simply wrong. It checks if serviceURL IS null, and then use it.
It causes NPE if serviceUrl is not specified in a config file.

Modifications

Correct the condition to check if the variable is blank.

Result

pulsar-client shows the usage without NPE.

@yahoocla
Copy link

CLA is valid!

Copy link
Contributor

@merlimat merlimat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@merlimat merlimat merged commit bfd6b08 into apache:master Sep 29, 2016
sijie pushed a commit to sijie/pulsar that referenced this pull request Mar 4, 2018
* Create pulsar-functions module (#1)

* Create pulsar-functions module

* rename `sdk` package to `api`

* Added the first cut of the Java interface for Pulsar functions (#2)

* Adhere to rest semantics

* Print the return values for get/list functions. Also print some statements on success
@maskit maskit deleted the wrong_condition branch October 23, 2018 14:19
hrsakai pushed a commit to hrsakai/pulsar that referenced this pull request Dec 10, 2020
* [Issue:45] Fix the logic of message router

Signed-off-by: xiaolong.ran <ranxiaolong716@gmail.com>

* add unit test case for TopicPartitions

Signed-off-by: xiaolong.ran <ranxiaolong716@gmail.com>
dlg99 pushed a commit to dlg99/pulsar that referenced this pull request Mar 29, 2022
* [elasticsearch] support token based auth
nicoloboschi referenced this pull request in nicoloboschi/pulsar Apr 1, 2022
* [elasticsearch] support token based auth
nicoloboschi referenced this pull request in nicoloboschi/pulsar Apr 6, 2022
* [elasticsearch] support token based auth
nicoloboschi referenced this pull request in nicoloboschi/pulsar Apr 12, 2022
* [elasticsearch] support token based auth

(cherry picked from commit cf13b39)
nodece added a commit to nodece/pulsar that referenced this pull request Mar 25, 2025
…the GEO (apache#46)

Signed-off-by: Zixuan Liu <nodeces@gmail.com>
nodece added a commit to nodece/pulsar that referenced this pull request Mar 27, 2025
…the GEO (apache#46)

Signed-off-by: Zixuan Liu <nodeces@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants