Skip to content

Correct an invalid null check - #46

Merged
merlimat merged 1 commit into
apache:masterfrom
maskit:wrong_condition
Sep 29, 2016
Merged

merlimat merged 1 commit into
apache:masterfrom
maskit:wrong_condition

Conversation

@maskit

@maskit maskit commented Sep 29, 2016 •

Copy link
Copy Markdown
Member

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
Copy Markdown

CLA is valid!

@merlimat merlimat left a comment

Copy link
Copy Markdown
Contributor

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 <[email protected]>

* add unit test case for TopicPartitions

Signed-off-by: xiaolong.ran <[email protected]>
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 referenced this pull request in nodece/pulsar Mar 25, 2025
nodece referenced this pull request in nodece/pulsar Mar 27, 2025
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