#vulnerable code 
                                @Test
    public void shouldSetEnabledOnDownloadEvent() {
        testee.queueCheckEnabled = false;
        testee.lastDownload = null;

        testee.onNzbDownloadEvent(new FileDownloadEvent(null, null));

        assertThat(testee.queueCheckEnabled).isTrue();
        assertThat(testee.lastDownload).isNotNull();
    } 
                            #location 6 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                                @Test
    public void shouldSetEnabledOnDownloadEvent() {
        testee.queueCheckEnabled = false;
        testee.lastDownload = null;

        testee.onNzbDownloadEvent(new FileDownloadEvent(new FileDownloadEntity(), new SearchResultEntity()));

        assertThat(testee.queueCheckEnabled).isTrue();
        assertThat(testee.lastDownload).isNotNull();
    }