ARTEMIS-1914 Fix NPE on ConfigurationImpl.hashCode()
This commit is contained in:
parent
46a41aecad
commit
1d89bc7dd2
|
@ -1635,7 +1635,7 @@ public class ConfigurationImpl implements Configuration, Serializable {
|
|||
result = prime * result + (logJournalWriteRate ? 1231 : 1237);
|
||||
result = prime * result + ((managementAddress == null) ? 0 : managementAddress.hashCode());
|
||||
result = prime * result + ((managementNotificationAddress == null) ? 0 : managementNotificationAddress.hashCode());
|
||||
result = prime * result + (maskPassword ? 1231 : 1237);
|
||||
result = prime * result + (maskPassword == null ? 0 : maskPassword.hashCode());
|
||||
result = prime * result + maxConcurrentPageIO;
|
||||
result = prime * result + (int) (memoryMeasureInterval ^ (memoryMeasureInterval >>> 32));
|
||||
result = prime * result + memoryWarningThreshold;
|
||||
|
|
|
@ -88,6 +88,13 @@ public class ConfigurationImplTest extends ActiveMQTestBase {
|
|||
Assert.assertEquals(ActiveMQDefaultConfiguration.getDefaultMemoryMeasureInterval(), conf.getMemoryMeasureInterval());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNullMaskPassword() {
|
||||
ConfigurationImpl impl = new ConfigurationImpl();
|
||||
impl.setMaskPassword(null);
|
||||
impl.hashCode();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSetGetAttributes() throws Exception {
|
||||
for (int j = 0; j < 100; j++) {
|
||||
|
|
Loading…
Reference in New Issue