Search Issue Tracker
Fixed
Votes
1
Found in [Package]
1.1.0
Issue ID
WSTB-35
Regression
No
"NullReferenceException" error is thrown when building the project with Submodule Stripping window docked and hidden
How to reproduce:
1. Create and open a new project
2. In the toolbar, navigate to Window > Package Management > Package Manager
3. In the Package Manager window, select the “Unity Registry” tab
4. Find and install the “Web Stripping Tool” package
5. In the toolbar, navigate to Window > Web Optimization > Submodule Stripping
6. Dock the newly opened window with Game/Scene window
7. Make sure the window is hidden, by focusing either Game or Scene window
8. Restart the Editor
9. In the toolbar, navigate to File > Build Profiles
10. Build the project for Web
11. Observe the Console
Expected result: The build finishes, no errors thrown in the Console
Actual result: The build finishes, “NullReferenceException” error is thrown in the Console
Reproducible with: 0.1.0-exp.1 (6000.1.0a4), 1.1.0 (6000.1.10f1, 6000.2.0b8, 6000.3.0a1)
Couldn’t test with: 2022.3.64f1, 6000.0.52f1 (package is not supported)
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Notes:
- Does not reproduce when building for Windows
- Does not reproduce if the “Submodule Stripping” window is focused
- An “NullReferenceException: Object reference not set to an instance of an object” error is thrown
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Disabling Unity VCS in Project Settings unfocuses the Project Settings Window
- [Linux] Unity Version Control Project Setting labels aren't Humanized on Linux
- UTF-8 character in index.html is corrupted when building a WebGL project
- Help box icon in "Tile Palette" window is blurry in both Unity themes
- Memory leak when importing a non-embedded-texture FBX exported from Character Creator 5 with “Mouth Open as Morph” and “Convert Skinned Expressions to Morphs” enabled
Resolution Note:
Fixed by another internal issue: WSTB-32: NRE during a build when the stripping window was loaded from a window layout and the window is yet to be shown