# 2022-07-02

## Update to Diffblue Cover's handing of NullPointerExceptions

Diffblue Cover now handles `NullPointerExceptions` despite `try / catch` blocks.

(`Try` blocks contains a set of statements where an exception can occur. A `catch` block will be used to handle any exceptions that occur as a result of the `try` block. A `try` block is always followed by a `catch` block and there can be multiple `catch` blocks.)

**This update means more tests and greater coverage!**

## Developer Edition trial available

We are delighted to now offer a 14-day trial version of our Developer Edition, which includes the Diffblue Cover CLI, as part of our new licensing option. We're really excited that you can now "try before you buy"! To download your trial of Diffblue Cover Developer Edition, please [click here](https://www.diffblue.com/try-cover?cover_plan_selected=Developer). Full information on all our options is also available [here](https://diffblue.com/pricing).

## How do I automatically maintain all of these tests?

![](https://info.diffblue.com/hubfs/PluginPopup/ci-workflow.gif)

Use Diffblue Cover on any CI platform to automatically update your unit tests and catch regressions for every commit - watch [this video](https://www.diffblue.com/video-demo/?utm_source=Plugin\&utm_medium=Whatsnew\&utm_campaign=WhatsNewBox) to learn more.

## Enhancements

* Cover now detects class loading issues (`R005`/`R006`) early and logs them in a more succinct and readable way. \[Ref: TG-17351]
* Cover now handles `NullPointerException`s found in `catch` blocks the same as ones which are thrown. \[Ref: TG-15203]
* Cover now has an improved log message for `MethodGroup` failure reasons. \[Ref: TG-17422]

## Resolved Issues

* Resolved an issue which, in some circumstances, caused Cover to not write a Spring test when `mockito-inline` is included in the project's dependencies. \[Ref: TG-17282]

## Known Issues

* CLI: The command `dcover clean --failing` does not work on Gradle projects. This command is now deprecated and `dcover validate` should be used instead. \[Ref: TG-11707]
* For multi-module projects, `--coverage-reports` needs to be run in the sub-modules, not from root module with `--working-directory`. \[Ref: TG-16876]


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cover-docs-preview.diffblue.com/updates-and-upgrades/release-archive/2022-07-02.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
