assertion failed: (nv != nullptr) when currentColor in stop-color

Summary:

reproducible crash when opening file

Steps to reproduce:

shade.svg open attached file

What happened?

$ inkscape shade.svg 

** (org.inkscape.Inkscape:9170): WARNING **: 07:46:04.173: Fonts dir '/home/gcb/.config/inkscape/fonts' does not exist and will be ignored.

Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at https://inkscape.org/report
with a detailed description of the steps leading to the crash, so we can fix it.
**
ERROR:/build/inkscape/src/inkscape/src/object/sp-namedview.cpp:1098:SPNamedView* sp_document_namedview(SPDocument*, const gchar*): assertion failed: (nv != nullptr)
Bail out! ERROR:/build/inkscape/src/inkscape/src/object/sp-namedview.cpp:1098:SPNamedView* sp_document_namedview(SPDocument*, const gchar*): assertion failed: (nv != nullptr)
Aborted (core dumped)

Version Info:

- Inkscape Version: Inkscape 1.0.2 (e86c870879, 2021-01-15, custom)
- Pango version: 1.48.4
- Operating System: linux
- Operating System version: kernel 5.12.3
- KDE Plasma Version: 5.21.5
- KDE Frameworks Version: 5.82.0
- Qt Version: 5.15.2
- Kernel Version: 5.12.3-arch1-1
- OS Type: 64-bit
Edited by Nathan Lee