Title: NullReferenceException when non-generic type is given type parameters · Issue #1325 · pythonnet/pythonnet · GitHub
Open Graph Title: NullReferenceException when non-generic type is given type parameters · Issue #1325 · pythonnet/pythonnet
X Title: NullReferenceException when non-generic type is given type parameters · Issue #1325 · pythonnet/pythonnet
Description: Environment Pythonnet version: latest git commit Python version: 3.7 Operating System: Windows 10 64-bit Details The following incorrect Python code produces a confusing NullReferenceException, instead of a more helpful error message: fr...
Open Graph Description: Environment Pythonnet version: latest git commit Python version: 3.7 Operating System: Windows 10 64-bit Details The following incorrect Python code produces a confusing NullReferenceException, ins...
X Description: Environment Pythonnet version: latest git commit Python version: 3.7 Operating System: Windows 10 64-bit Details The following incorrect Python code produces a confusing NullReferenceException, ins...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/1325
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NullReferenceException when non-generic type is given type parameters","articleBody":"### Environment\r\n\r\n- Pythonnet version: [latest git commit](https://github.com/pythonnet/pythonnet/commit/bd264cf003ca1f9727d7eaeb90ddf913e81fdad2)\r\n- Python version: 3.7\r\n- Operating System: Windows 10 64-bit\r\n\r\n### Details\r\n\r\nThe following incorrect Python code produces a confusing NullReferenceException, instead of a more helpful error message:\r\n```python\r\nfrom System.Collections import IList\r\nIList[bool]\r\n```\r\n\r\n- If there was a crash, please include the traceback here.\r\n\r\n```\r\nUnhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.\r\n at Python.Runtime.GenericUtil.GenericByName(String ns, String name, Int32 paramCount)\r\n at Python.Runtime.ClassBase.type_subscript(IntPtr idx)\r\n```\r\n\r\nA more helpful message would be: `System.Collections.IList is not a generic type`","author":{"url":"https://github.com/tminka","@type":"Person","name":"tminka"},"datePublished":"2020-12-17T13:31:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1325/pythonnet/issues/1325"}
| 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:8a18b437-5db3-0599-5107-d42ae6ff67ea |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BE92:275E8B:3073B86:311C2EA:69702D8A |
| html-safe-nonce | 3f1a5325a81131676d1a28d64445ec3979a2b506dca30a43bc454e4cc1fc9c9f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTkyOjI3NUU4QjozMDczQjg2OjMxMUMyRUE6Njk3MDJEOEEiLCJ2aXNpdG9yX2lkIjoiNzUxMTA3NjEwMjIxNDc5MDUzOCIsInJlZ2lvbl9lZGdlIjoic2VhIiwicmVnaW9uX3JlbmRlciI6InNlYSJ9 |
| visitor-hmac | 65e6da1e69a16b431053832042f9cb97bd2bf6ed2174c41f4458082c058f4748 |
| hovercard-subject-tag | issue:770033668 |
| 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/pythonnet/pythonnet/1325/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fd8aef8fe4c7834c0ad8d2da7b58f9c7fb5e77195bddd345b69eab63bade47cb/pythonnet/pythonnet/issues/1325 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fd8aef8fe4c7834c0ad8d2da7b58f9c7fb5e77195bddd345b69eab63bade47cb/pythonnet/pythonnet/issues/1325 |
| og:image:alt | Environment Pythonnet version: latest git commit Python version: 3.7 Operating System: Windows 10 64-bit Details The following incorrect Python code produces a confusing NullReferenceException, ins... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tminka |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01fa379f5de85ef8e791d09724e69709ce9eb9595278316e0a921312dc88e0bc |
| turbo-cache-control | no-preview |
| go-import | github.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git |
| octolytics-dimension-user_id | 6050430 |
| octolytics-dimension-user_login | pythonnet |
| octolytics-dimension-repository_id | 14748123 |
| octolytics-dimension-repository_nwo | pythonnet/pythonnet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14748123 |
| octolytics-dimension-repository_network_root_nwo | pythonnet/pythonnet |
| 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 | dda91974c069382b0dfa47b2da7e28bd061c8331 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width