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
- VFX Graph Documentation dropdown button does nothing when clicked on the right side
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
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
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