Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NPE when trying to delete not existing queue #74

Merged
merged 1 commit into from Dec 12, 2019

Conversation

ledoyen
Copy link
Contributor

@ledoyen ledoyen commented Dec 12, 2019

Both queue.delete and exchange.delete methods are idempotent.
In the case no queue is deleted, they behave as if an empty queue/exchange was.

Fixes #73

Both `queue.delete` and `exchange.delete` methods are idempotent.
In the case no queue is deleted, they behave as if an empty
queue/exchange was.
@ledoyen ledoyen added the bug Something isn't working label Dec 12, 2019
@codecov
Copy link

codecov bot commented Dec 12, 2019

Codecov Report

Merging #74 into master will increase coverage by 0.09%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #74      +/-   ##
============================================
+ Coverage     93.46%   93.56%   +0.09%     
  Complexity      432      432              
============================================
  Files            38       38              
  Lines          1025     1025              
  Branches         44       43       -1     
============================================
+ Hits            958      959       +1     
  Misses           48       48              
+ Partials         19       18       -1
Impacted Files Coverage Δ Complexity Δ
...ava/com/github/fridujo/rabbitmq/mock/MockNode.java 95% <100%> (+1.25%) 30 <1> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 46e54f1...7cbcc61. Read the comment docs.

@ledoyen ledoyen merged commit 9509c57 into master Dec 12, 2019
@ledoyen ledoyen deleted the fix/queue_delete_idempotent branch December 12, 2019 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deleting unexisting queue causes NPE
1 participant