Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting 'An error occured. Object reference not set to an instance of an object.' when saving a newly created module. #4326

Open
amosley3309 opened this issue Feb 3, 2025 · 0 comments
Labels
requires triage Issue has not yet been verified by the development team. v5 Version 5 issue.

Comments

@amosley3309
Copy link

Description of Issue

I'm getting the following error when I go to save a newly created module. It will create the module, but I have to go back to the main modules page, then edit it. This doesn't seem to make it so I can't use said module in anything, but I'm not too sure why it is happening.

An error occured. 
Object reference not set to an instance of an object.
at UniversalAutomation.Services.ModuleConfigService.UpdateAsync(ModelOperationContext`1 context) in C:\actions-runner\_work\universal\universal\src\Universal.Server\Services\Configuration\Modules.cs:line 270 
at UniversalAutomation.Services.UniversalConfigurationService.WriteAndSyncAsync[T](T item, Identity identity) in C:\actions-runner\_work\universal\universal\src\Universal.Server\Services\UniversalConfigurationService.cs:line 82 
at PowerShellUniversal.Shared.ResourceCodeEditor`1.Save(StandaloneCodeEditor editor) in C:\actions-runner\_work\universal\universal\src\Universal.Server\Shared\ResourceCodeEditor.razor:line 318 
at PowerShellUniversal.Shared.ResourceCodeEditor`1.Save() in C:\actions-runner\_work\universal\universal\src\Universal.Server\Shared\ResourceCodeEditor.razor:line 270 
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task) 
at AntDesign.Button.HandleOnClick(MouseEventArgs args) 
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task) 
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)

Let me know if I need to provide any more information. I'm kind of guessing it's trying to reference a folder that doesn't exist? Since I don't have a C:\actions-runner\ folder, but I'm not too sure why it would be looking there.

Version

5.2.2

Severity

Medium

Hosting Method

MSI (Windows Service)

Operating System

Windows

Database

SQLite

Licensed

No

Features

Nothing. This is a fresh install after dealing with a couple other issues in a different version.

Additional Environment data

OS: Windows Server 2022

Screenshots/Animations

No response

@amosley3309 amosley3309 added requires triage Issue has not yet been verified by the development team. v5 Version 5 issue. labels Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires triage Issue has not yet been verified by the development team. v5 Version 5 issue.
Projects
None yet
Development

No branches or pull requests

1 participant