Dont increment the path count (and dont create a corresponding pointer) in `ButsContextPath` when there is no current particle system. This alone would do the trick for particles, but I have also changed `buttons_panel_context_draw` slightly (so that it checks if the pointer is valid -- earlying out otherwise -- **before** drawing the triangle icon) in case it might happen elsewhere too. Pull Request: https://projects.blender.org/blender/blender/pulls/136256