[ https://issues.apache.org/jira/browse/CASSANDRA-11961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Achal Shah updated CASSANDRA-11961: ----------------------------------- Status: Patch Available (was: Open) Hi, this is my first patch to Cassandra; apologies if I've messed up in any way. Please let me know if there are any improvements I can make! I've pushed a branch with my changes to github: https://github.com/achals/cassandra/tree/11961-trunk I looked for tests but there didn't seem to be any for this class. > Nonfatal NPE in CompactionMetrics > --------------------------------- > > Key: CASSANDRA-11961 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11961 > Project: Cassandra > Issue Type: Bug > Reporter: Robert Stupp > Priority: Minor > Labels: lhf > > Just saw the following NPE on trunk. Means, that {{metaData}} from > {{CFMetaData metaData = compaction.getCompactionInfo().getCFMetaData();}} is > {{null}}. A simple {{if (metaData == null) continue;}} should fix this. > {code} > Caused by: java.lang.NullPointerException: null > at > org.apache.cassandra.metrics.CompactionMetrics$2.getValue(CompactionMetrics.java:103) > ~[main/:na] > at > org.apache.cassandra.metrics.CompactionMetrics$2.getValue(CompactionMetrics.java:78) > ~[main/:na] > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)