# Removing images BackgroundJobWorker System.NullReferenceException

**URL:** <https://forum.litium.com/t/removing-images-backgroundjobworker-system-nullreferenceexception/1008>\
**Category:** Questions\
**Created:** [August 5, 2019, 9:11am UTC](https://forum.litium.com/t/removing-images-backgroundjobworker-system-nullreferenceexception/1008 "2019-08-05T09:11:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krister.Johansson](https://avatars.discourse-cdn.com/v4/letter/k/f1d935/32.png) [@Krister.Johansson](https://forum.litium.com/u/Krister.Johansson)\
**Post date:** [August 5, 2019, 9:11am UTC](https://forum.litium.com/t/removing-images-backgroundjobworker-system-nullreferenceexception/1008/1 "2019-08-05T09:11:45Z")

</div>

Get this error when we try to delete folder with images.

```
    2019-08-05 11:02:07.6206 [App:02] [48638ac4-2732-4a9a-ad18-3650010c26d9] [ERROR] [] Litium.Application.Scheduler.BackgroundJobEngine - Execution of background processor Litium.Application.Scheduler.BackgroundJobWorker, Litium.Application failed, executing again in 5 seconds. System.NullReferenceException: Objektreferensen har inte angetts till en instans av ett objekt.
   vid Litium.Application.Scheduler.Data.SchedulerHelperService.<>c __DisplayClass9_0.<<ProcessAsync>b__ 0>d.MoveNext()
--- Slut på stackspårningen från föregående plats där ett undantag utlöstes ---
   vid System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   vid System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   vid Litium.Application.Data.DbContextExtension.<ExecuteInDbContextAsync>d__4`1.MoveNext()
--- Slut på stackspårningen från föregående plats där ett undantag utlöstes ---
   vid System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   vid System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   vid Litium.Application.Scheduler.BackgroundJobQueue.<ReceiveAsync>d__5.MoveNext()
--- Slut på stackspårningen från föregående plats där ett undantag utlöstes ---
   vid System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   vid System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   vid Litium.Application.Scheduler.BackgroundJobWorker.<ExecuteAsync>d__5.MoveNext()
--- Slut på stackspårningen från föregående plats där ett undantag utlöstes ---
   vid System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   vid System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   vid Litium.Application.Scheduler.BackgroundJobEngine.InfiniteRetryBackgroundProcess.<ExecuteAsync>d__3.MoveNext()

```

Litium version: 7

---

<div class="post-metadata">

**Author:** ![patric.forsgard](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/patric.forsgard/32/10_2.png) [@patric.forsgard](https://forum.litium.com/u/patric.forsgard)\
**Post date:** [August 6, 2019, 7:10am UTC](https://forum.litium.com/t/removing-images-backgroundjobworker-system-nullreferenceexception/1008/2 "2019-08-06T07:10:49Z")

</div>

Regarding to the exception message this is related to an issue that already is fixed. Please, update to latest release.

Ps. It is good to include full version number in description.

---

<div class="post-metadata">

**Author:** ![Krister.Johansson](https://avatars.discourse-cdn.com/v4/letter/k/f1d935/32.png) [@Krister.Johansson](https://forum.litium.com/u/Krister.Johansson)\
**Post date:** [August 7, 2019, 9:15am UTC](https://forum.litium.com/t/removing-images-backgroundjobworker-system-nullreferenceexception/1008/3 "2019-08-07T09:15:00Z")

</div>

7.2.1 Is the one we use now

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [September 4, 2019, 9:24am UTC](https://forum.litium.com/t/removing-images-backgroundjobworker-system-nullreferenceexception/1008/4 "2019-09-04T09:24:19Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
