Title: Object reference not set to an instance of an object. · Issue #1867 · PowerShell/PSScriptAnalyzer · GitHub
Open Graph Title: Object reference not set to an instance of an object. · Issue #1867 · PowerShell/PSScriptAnalyzer
X Title: Object reference not set to an instance of an object. · Issue #1867 · PowerShell/PSScriptAnalyzer
Description: Good morning, I have a PowerShell module at work with almost 400 functions. Recently I switched from PSScriptAnalyzer version 1.13.0 to version 1.21.0, fixed a lot of problems, but I have one left. On random functions I get the error: Ex...
Open Graph Description: Good morning, I have a PowerShell module at work with almost 400 functions. Recently I switched from PSScriptAnalyzer version 1.13.0 to version 1.21.0, fixed a lot of problems, but I have one left....
X Description: Good morning, I have a PowerShell module at work with almost 400 functions. Recently I switched from PSScriptAnalyzer version 1.13.0 to version 1.21.0, fixed a lot of problems, but I have one left....
Opengraph URL: https://github.com/PowerShell/PSScriptAnalyzer/issues/1867
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Object reference not set to an instance of an object.","articleBody":"Good morning,\r\nI have a PowerShell module at work with almost 400 functions. Recently I switched from PSScriptAnalyzer version 1.13.0 to version 1.21.0, fixed a lot of problems, but I have one left. On random functions I get the error:\r\n\r\nException: Object reference not set to an instance of an object.\r\n\r\nIf I use the Invoke-ScriptAnalyzer function with the -Verbose switch, the error does not occur. I discovered this by accident while looking for which function is causing the error.\r\n\r\nPlease advise how to trace the cause.\r\nSomewhere I found information that this can be caused by the Export-ModuleMember function, but I don't want to get rid of it because I would have to fiddle with building the manifest file and that's how Psake does it for me.\r\n\r\nFor building and checking a powershell module I use\r\nTeamCity and\r\nPsake = '4.9.0'\r\nPester = '5.3.3'\r\nBuildHelpers = '2.0.16'\r\nPSScriptAnalyzer = '1.21.0'\r\nPSDepend = '0.3.8'\r\n\r\n\r\n","author":{"url":"https://github.com/DomBros","@type":"Person","name":"DomBros"},"datePublished":"2022-12-02T11:32:47Z","url":"https://github.com/PowerShell/PSScriptAnalyzer/issues/1867"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7fc2810a-4968-2420-a47d-933e356228ea |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9738:3D0013:11474C0:1887FA8:6AFCD7DE |
| html-safe-nonce | 4c02389c33b41875fe6e74569e870af55f0937c8043f7d517d0a93bd22bc3213 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzM4OjNEMDAxMzoxMTQ3NEMwOjE4ODdGQTg6NkFGQ0Q3REUiLCJ2aXNpdG9yX2lkIjoiODc2NDQ4MjA2ODk5OTM2MjUyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d921905b1354d61ecb3f0df8f9c35b210755e83af478fcbcc0a2f0f6de13da35 |
| hovercard-subject-tag | issue:1472724324 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PSScriptAnalyzer/1867/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d624906998fc10c2ad963122670968820b08d20af9cbf47c1911c9f82663f137/PowerShell/PSScriptAnalyzer/issues/1867 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d624906998fc10c2ad963122670968820b08d20af9cbf47c1911c9f82663f137/PowerShell/PSScriptAnalyzer/issues/1867 |
| og:image:alt | Good morning, I have a PowerShell module at work with almost 400 functions. Recently I switched from PSScriptAnalyzer version 1.13.0 to version 1.21.0, fixed a lot of problems, but I have one left.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DomBros |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5b7bc7e41e0a604bbdb5035c7ed9620c2d28b9c8a18747182e2262a75abfd91 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PSScriptAnalyzer git https://github.com/PowerShell/PSScriptAnalyzer.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 33149177 |
| octolytics-dimension-repository_nwo | PowerShell/PSScriptAnalyzer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 33149177 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PSScriptAnalyzer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ff5022cc3aa767e6115451d9c322dd975506d40e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width