René's URL Explorer Experiment


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

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@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![image](https://user-images.githubusercontent.com/18525141/205283518-ccf7951f-bcc3-44b1-8f42-bb3d664cf161.png)\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-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:7fc2810a-4968-2420-a47d-933e356228ea
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9738:3D0013:11474C0:1887FA8:6AFCD7DE
html-safe-nonce4c02389c33b41875fe6e74569e870af55f0937c8043f7d517d0a93bd22bc3213
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzM4OjNEMDAxMzoxMTQ3NEMwOjE4ODdGQTg6NkFGQ0Q3REUiLCJ2aXNpdG9yX2lkIjoiODc2NDQ4MjA2ODk5OTM2MjUyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd921905b1354d61ecb3f0df8f9c35b210755e83af478fcbcc0a2f0f6de13da35
hovercard-subject-tagissue:1472724324
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PSScriptAnalyzer/1867/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d624906998fc10c2ad963122670968820b08d20af9cbf47c1911c9f82663f137/PowerShell/PSScriptAnalyzer/issues/1867
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d624906998fc10c2ad963122670968820b08d20af9cbf47c1911c9f82663f137/PowerShell/PSScriptAnalyzer/issues/1867
og:image:altGood 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDomBros
hostnamegithub.com
expected-hostnamegithub.com
Noneb5b7bc7e41e0a604bbdb5035c7ed9620c2d28b9c8a18747182e2262a75abfd91
turbo-cache-controlno-preview
go-importgithub.com/PowerShell/PSScriptAnalyzer git https://github.com/PowerShell/PSScriptAnalyzer.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id33149177
octolytics-dimension-repository_nwoPowerShell/PSScriptAnalyzer
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id33149177
octolytics-dimension-repository_network_root_nwoPowerShell/PSScriptAnalyzer
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseff5022cc3aa767e6115451d9c322dd975506d40e
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/PowerShell/PSScriptAnalyzer/issues/1867#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPSScriptAnalyzer%2Fissues%2F1867
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPSScriptAnalyzer%2Fissues%2F1867
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=PowerShell%2FPSScriptAnalyzer
Reloadhttps://github.com/PowerShell/PSScriptAnalyzer/issues/1867
Reloadhttps://github.com/PowerShell/PSScriptAnalyzer/issues/1867
Reloadhttps://github.com/PowerShell/PSScriptAnalyzer/issues/1867
PowerShellhttps://github.com/PowerShell
PSScriptAnalyzerhttps://github.com/PowerShell/PSScriptAnalyzer
Codehttps://github.com/PowerShell/PSScriptAnalyzer
Issues407 (407)https://github.com/PowerShell/PSScriptAnalyzer/issues
Pull requests34 (34)https://github.com/PowerShell/PSScriptAnalyzer/pulls
Discussionshttps://github.com/PowerShell/PSScriptAnalyzer/discussions
Actionshttps://github.com/PowerShell/PSScriptAnalyzer/actions
Projectshttps://github.com/PowerShell/PSScriptAnalyzer/projects
Wikihttps://github.com/PowerShell/PSScriptAnalyzer/wiki
Security and qualityhttps://github.com/PowerShell/PSScriptAnalyzer/security
Insightshttps://github.com/PowerShell/PSScriptAnalyzer/insights
https://github.com/PowerShell/PSScriptAnalyzer
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PSScriptAnalyzer/issues/1867
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PSScriptAnalyzer/issues/1867
Object reference not set to an instance of an object.https://github.com/PowerShell/PSScriptAnalyzer/issues/1867#top
Area - Enginehttps://github.com/PowerShell/PSScriptAnalyzer/issues?q=state%3Aopen%20label%3A%22Area%20-%20Engine%22
Issue - Discussionhttps://github.com/PowerShell/PSScriptAnalyzer/issues?q=state%3Aopen%20label%3A%22Issue%20-%20Discussion%22
Issue-Bughttps://github.com/PowerShell/PSScriptAnalyzer/issues?q=state%3Aopen%20label%3A%22Issue-Bug%22
https://github.com/DomBros
Tomasz Dąbrowski (DomBros)https://github.com/DomBros
on Dec 2, 2022https://github.com/PowerShell/PSScriptAnalyzer/issues/1867#issue-1472724324
https://user-images.githubusercontent.com/18525141/205283518-ccf7951f-bcc3-44b1-8f42-bb3d664cf161.png
Needs: Triage 🔍https://github.com/PowerShell/PSScriptAnalyzer/issues?q=state%3Aopen%20label%3A%22Needs%3A%20Triage%20%3Amag%3A%22
on Dec 2, 2022https://github.com/PowerShell/PSScriptAnalyzer/issues/1867#event-7939945520
https://github.com/StevenBucher98
Steven Bucher (StevenBucher98)https://github.com/StevenBucher98
on Dec 6, 2022https://github.com/PowerShell/PSScriptAnalyzer/issues/1867#issuecomment-1340137018
Tomasz Dąbrowski (@DomBros)https://github.com/DomBros
https://github.com/JamesWTruher
James Truher (JamesWTruher)https://github.com/JamesWTruher
on Dec 6, 2022https://github.com/PowerShell/PSScriptAnalyzer/issues/1867#issuecomment-1340161523
Tomasz Dąbrowski (@DomBros)https://github.com/DomBros
https://github.com/DomBros
Tomasz Dąbrowski (DomBros)https://github.com/DomBros
on Dec 7, 2022https://github.com/PowerShell/PSScriptAnalyzer/issues/1867#issuecomment-1340776253
https://github.com/DomBros
Tomasz Dąbrowski (DomBros)https://github.com/DomBros
on Dec 7, 2022https://github.com/PowerShell/PSScriptAnalyzer/issues/1867#issuecomment-1340835926
TC_psScriptAnalyzer_error.txthttps://github.com/PowerShell/PSScriptAnalyzer/files/10175534/TC_psScriptAnalyzer_error.txt
https://github.com/DomBros
Tomasz Dąbrowski (DomBros)https://github.com/DomBros
on Dec 7, 2022https://github.com/PowerShell/PSScriptAnalyzer/issues/1867#issuecomment-1340837094
https://github.com/DomBros
Tomasz Dąbrowski (DomBros)https://github.com/DomBros
on Dec 7, 2022https://github.com/PowerShell/PSScriptAnalyzer/issues/1867#issuecomment-1340910890
TC_psScriptAnalyzer_error_2.txthttps://github.com/PowerShell/PSScriptAnalyzer/files/10176102/TC_psScriptAnalyzer_error_2.txt
https://github.com/DomBros
Tomasz Dąbrowski (DomBros)https://github.com/DomBros
on Dec 7, 2022https://github.com/PowerShell/PSScriptAnalyzer/issues/1867#issuecomment-1340915523
https://user-images.githubusercontent.com/18525141/206182764-88314af2-cd1b-44ac-93f3-47c356d55813.png
https://github.com/DomBros
Tomasz Dąbrowski (DomBros)https://github.com/DomBros
on Dec 7, 2022https://github.com/PowerShell/PSScriptAnalyzer/issues/1867#issuecomment-1340931894
https://github.com/bergmeister
Christoph Bergmeister (bergmeister)https://github.com/bergmeister
on Dec 7, 2022https://github.com/PowerShell/PSScriptAnalyzer/issues/1867#issuecomment-1340941069
#1516https://github.com/PowerShell/PSScriptAnalyzer/issues/1516
PowerShell/PowerShell#12865https://github.com/PowerShell/PowerShell/pull/12865
James Truher (@JamesWTruher)https://github.com/JamesWTruher
Patrick Meinecke (@SeeminglyScience)https://github.com/SeeminglyScience
https://github.com/DomBros
Tomasz Dąbrowski (DomBros)https://github.com/DomBros
on Dec 7, 2022https://github.com/PowerShell/PSScriptAnalyzer/issues/1867#issuecomment-1340948945
tc_psScriptAnalzyer_error_202212071402.txthttps://github.com/PowerShell/PSScriptAnalyzer/files/10176339/tc_psScriptAnalzyer_error_202212071402.txt
tc_psScriptAnalzyer_error_202212071347.txthttps://github.com/PowerShell/PSScriptAnalyzer/files/10176340/tc_psScriptAnalzyer_error_202212071347.txt
https://github.com/DomBros
Tomasz Dąbrowski (DomBros)https://github.com/DomBros
on Dec 7, 2022https://github.com/PowerShell/PSScriptAnalyzer/issues/1867#issuecomment-1341117970
https://github.com/bergmeister
Christoph Bergmeister (bergmeister)https://github.com/bergmeister
on Dec 7, 2022https://github.com/PowerShell/PSScriptAnalyzer/issues/1867#issuecomment-1341151540
tc_psScriptAnalzyer_error_202212071402.txthttps://github.com/PowerShell/PSScriptAnalyzer/files/10176339/tc_psScriptAnalzyer_error_202212071402.txt
tc_psScriptAnalzyer_error_202212071347.txthttps://github.com/PowerShell/PSScriptAnalyzer/files/10176340/tc_psScriptAnalzyer_error_202212071347.txt
https://github.com/DomBros
Tomasz Dąbrowski (DomBros)https://github.com/DomBros
on Dec 7, 2022https://github.com/PowerShell/PSScriptAnalyzer/issues/1867#issuecomment-1341258399
ScriptingStyle.txthttps://github.com/PowerShell/PSScriptAnalyzer/files/10178090/ScriptingStyle.txt
https://github.com/SeeminglyScience
Patrick Meinecke (SeeminglyScience)https://github.com/SeeminglyScience
on Dec 7, 2022https://github.com/PowerShell/PSScriptAnalyzer/issues/1867#issuecomment-1341425943
Christoph Bergmeister (@bergmeister)https://github.com/bergmeister
https://github.com/JamesWTruher
James Truher (JamesWTruher)https://github.com/JamesWTruher
on Jan 30, 2023https://github.com/PowerShell/PSScriptAnalyzer/issues/1867#issuecomment-1409173475
Christoph Bergmeister (@bergmeister)https://github.com/bergmeister
Patrick Meinecke (@SeeminglyScience)https://github.com/SeeminglyScience
Steven Bucher (StevenBucher98)https://github.com/StevenBucher98
Issue - Discussionhttps://github.com/PowerShell/PSScriptAnalyzer/issues?q=state%3Aopen%20label%3A%22Issue%20-%20Discussion%22
Area - Enginehttps://github.com/PowerShell/PSScriptAnalyzer/issues?q=state%3Aopen%20label%3A%22Area%20-%20Engine%22
Issue-Bughttps://github.com/PowerShell/PSScriptAnalyzer/issues?q=state%3Aopen%20label%3A%22Issue-Bug%22
Needs: Triage 🔍https://github.com/PowerShell/PSScriptAnalyzer/issues?q=state%3Aopen%20label%3A%22Needs%3A%20Triage%20%3Amag%3A%22
on Jan 30, 2023https://github.com/PowerShell/PSScriptAnalyzer/issues/1867#event-8391538676
https://github.com/SeeminglyScience
Patrick Meinecke (SeeminglyScience)https://github.com/SeeminglyScience
on Jan 30, 2023https://github.com/PowerShell/PSScriptAnalyzer/issues/1867#issuecomment-1409230668
Christoph Bergmeister (@bergmeister)https://github.com/bergmeister
Patrick Meinecke (@SeeminglyScience)https://github.com/SeeminglyScience
https://github.com/bergmeister
Christoph Bergmeister (bergmeister)https://github.com/bergmeister
on Feb 1, 2023https://github.com/PowerShell/PSScriptAnalyzer/issues/1867#issuecomment-1412409665
Christoph Bergmeister (@bergmeister)https://github.com/bergmeister
Patrick Meinecke (@SeeminglyScience)https://github.com/SeeminglyScience
https://github.com/SeeminglyScience
Patrick Meinecke (SeeminglyScience)https://github.com/SeeminglyScience
on Feb 1, 2023https://github.com/PowerShell/PSScriptAnalyzer/issues/1867#issuecomment-1412698157
Kyle Sexton (kyle-sexton)https://github.com/kyle-sexton
on Sep 23, 2026https://github.com/PowerShell/PSScriptAnalyzer/issues/1867#event-31696713156
fix(machine-health): drop Export-ModuleMember from Mock-Helpers (#4374)https://github.com/melodic-software/claude-code-plugins/commit/7ae28fa83871794241acf276467191f8ec6bcc9e
#4374https://github.com/melodic-software/claude-code-plugins/pull/4374
7ae28fahttps://github.com/melodic-software/claude-code-plugins/commit/7ae28fa83871794241acf276467191f8ec6bcc9e
docs(lefthook-powershell): correct the PSScriptAnalyzer failure mecha…https://github.com/melodic-software/standards/commit/f129fe386059cf5fe1853d093f996576f84851db
f129fe3https://github.com/melodic-software/standards/commit/f129fe386059cf5fe1853d093f996576f84851db
Sign up for freehttps://github.com/signup?return_to=https://github.com/PowerShell/PSScriptAnalyzer/issues/1867
Sign in to commenthttps://github.com/login?return_to=https://github.com/PowerShell/PSScriptAnalyzer/issues/1867
Area - Enginehttps://github.com/PowerShell/PSScriptAnalyzer/issues?q=state%3Aopen%20label%3A%22Area%20-%20Engine%22
Issue - Discussionhttps://github.com/PowerShell/PSScriptAnalyzer/issues?q=state%3Aopen%20label%3A%22Issue%20-%20Discussion%22
Issue-Bughttps://github.com/PowerShell/PSScriptAnalyzer/issues?q=state%3Aopen%20label%3A%22Issue-Bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.