0xC0000054 / PSFilterPdn

A Paint.NET effect plugin that enables the use of 3rd party 8bf filters.
https://forums.getpaint.net/index.php?/topic/20622-psfilterpdn/
MIT License
37 stars 3 forks source link

Crash during re-applying of filter #4

Closed danielmarschall closed 2 years ago

danielmarschall commented 2 years ago

Reproduction:

  1. Open Paint.net
  2. Click Effects -> 8BF filters
  3. Select a filter and press "OK". Do NOT click "Run filter"
  4. Press Ctrl+F to re-apply the filter
  5. You will receive a NullPointerException because there is no filter to re-apply, because the filter was never invoked

Exception details:

System.ArgumentNullException: Der Wert darf nicht NULL sein.
Parametername: key
   bei System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
   bei System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
   bei System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
   bei PSFilterPdn.PSFilterPdnEffect.RunRepeatFilter(PSFilterPdnConfigToken& token, IWin32Window window)
   bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   bei System.Threading.ThreadHelper.ThreadStart()