I have error

> 
> A "NullPointerException" could be thrown; "btn" is nullable here.
> 
> 
> 

on code:

```
Button btn = getButton();
Assert.assertNotNull ("No button", btn);
btn.click();

```

How I can resolve this problem except case:

```
Button btn = getButton();
if (btn != null) {
  btn.click();
}

```