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

Deleting unexisting queue causes NPE #73

Closed
janssk1 opened this issue Dec 11, 2019 · 2 comments · Fixed by #74
Closed

Deleting unexisting queue causes NPE #73

janssk1 opened this issue Dec 11, 2019 · 2 comments · Fixed by #74
Labels
bug Something isn't working

Comments

@janssk1
Copy link

janssk1 commented Dec 11, 2019

Whereas the method should be idempotent.
Stacktrace:

Caused by: java.lang.NullPointerException: null
	at com.github.fridujo.rabbitmq.mock.MockNode.queueDelete(MockNode.java:90)
	at com.github.fridujo.rabbitmq.mock.MockChannel.queueDelete(MockChannel.java:323)
	at com.github.fridujo.rabbitmq.mock.MockChannel.queueDelete(MockChannel.java:318)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.springframework.amqp.rabbit.connection.CachingConnectionFactory$CachedChannelInvocationHandler.invoke(CachingConnectionFactory.java:1140)
	at com.sun.proxy.$Proxy86.queueDelete(Unknown Source)
	at org.springframework.amqp.rabbit.core.RabbitAdmin.lambda$deleteQueue$3(RabbitAdmin.java:315)
	at org.springframework.amqp.rabbit.core.RabbitTemplate.invokeAction(RabbitTemplate.java:2135)
	at org.springframework.amqp.rabbit.core.RabbitTemplate.doExecute(RabbitTemplate.java:2094)
@ledoyen ledoyen added the bug Something isn't working label Dec 12, 2019
@ledoyen ledoyen reopened this Dec 12, 2019
@ledoyen
Copy link
Contributor

ledoyen commented Dec 12, 2019

I pushed a fix.
It will be available in the snapshot repository (see using the latest snapshot).

Let me know if this works for you.

@ledoyen
Copy link
Contributor

ledoyen commented Feb 9, 2020

Closed without feedback.

@ledoyen ledoyen closed this as completed Feb 9, 2020
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 a pull request may close this issue.

2 participants