[ https://issues.apache.org/jira/browse/ARTEMIS-2815?focusedWorklogId=449687&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-449687 ]
ASF GitHub Bot logged work on ARTEMIS-2815: ------------------------------------------- Author: ASF GitHub Bot Created on: 23/Jun/20 08:38 Start Date: 23/Jun/20 08:38 Worklog Time Spent: 10m Work Description: michaelpearce-gain commented on pull request #3195: URL: https://github.com/apache/activemq-artemis/pull/3195#issuecomment-647997888 @Havret merged thanks ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 449687) Time Spent: 2h 50m (was: 2h 40m) > Null pointer exception on queue update > -------------------------------------- > > Key: ARTEMIS-2815 > URL: https://issues.apache.org/jira/browse/ARTEMIS-2815 > Project: ActiveMQ Artemis > Issue Type: Bug > Components: Broker > Affects Versions: 2.13.0 > Reporter: Krzysztof Porębski > Assignee: Krzysztof Porębski > Priority: Major > Time Spent: 2h 50m > Remaining Estimate: 0h > > Null pointer exception is thrown on the attempt to update a queue created > without a filter. > The problem is with getQueueConfiguration method in QueueImpl class. There is > no check if filter is null before getFilterString is invoked. > {code:java} > @Override > public QueueConfiguration getQueueConfiguration() { > return new QueueConfiguration(name) > .setAddress(address) > .setId(id) > .setRoutingType(routingType) > .setFilterString(filter.getFilterString()) > .setDurable(isDurable()) > .setUser(user) > .setMaxConsumers(maxConsumers) > .setExclusive(exclusive) > .setGroupRebalance(groupRebalance) > .setGroupBuckets(groupBuckets) > .setGroupFirstKey(groupFirstKey) > .setLastValue(false) > .setLastValue(null) > .setNonDestructive(nonDestructive) > .setPurgeOnNoConsumers(purgeOnNoConsumers) > .setConsumersBeforeDispatch(consumersBeforeDispatch) > .setDelayBeforeDispatch(delayBeforeDispatch) > .setAutoDelete(autoDelete) > .setAutoDeleteDelay(autoDeleteDelay) > .setAutoDeleteMessageCount(autoDeleteMessageCount) > .setRingSize(ringSize) > .setConfigurationManaged(configurationManaged) > .setTemporary(temporary) > .setInternal(internalQueue) > .setTransient(refCountForConsumers instanceof TransientQueueManagerImpl) > .setAutoCreated(autoCreated); > }{code} -- This message was sent by Atlassian Jira (v8.3.4#803005)