[ 
https://issues.apache.org/jira/browse/ARTEMIS-2815?focusedWorklogId=448867&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-448867
 ]

ASF GitHub Bot logged work on ARTEMIS-2815:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 21/Jun/20 06:16
            Start Date: 21/Jun/20 06:16
    Worklog Time Spent: 10m 
      Work Description: michaelandrepearce edited a comment on pull request 
#3195:
URL: https://github.com/apache/activemq-artemis/pull/3195#issuecomment-647084241


    You can do it simpler with 
   
   filter == null ? null : filter.getFilterString():
   


----------------------------------------------------------------
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: 448867)
    Time Spent: 40m  (was: 0.5h)

> 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: 40m
>  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)

Reply via email to