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

NullReferenceException during import #57

Open
Terrance opened this issue Jan 28, 2025 · 0 comments
Open

NullReferenceException during import #57

Terrance opened this issue Jan 28, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Terrance
Copy link

Describe the bug

One of the games (seemingly this one) in my Indiegala account appears to be upsetting the import.

Expected behavior

Imports to complete without errors.

Extensions log

28-01 22:34:10.865|WARN |IndiegalaLibrary#IndiegalaApi:GetGameDetails() - {"status": "success", "message": "Product data ok.", "product_data": {"id": 612, "developer_ref": {"id": 172, "namespace": "freebies", "id_key_name": "5844378552762368", "username": "freebies", "title": "galaFreebies", "status": null, "created": "2018-12-13T08:54:01.665017", "settings_ref": {"id": 172, "page_status": 1, "main_text": "<p>Well, you know....</p>\r\n\r\n<iframe src=\"https://store.steampowered.com/widget/1874190/\" frameborder=\"0\" width=\"646\" height=\"190\"></iframe>\r\n\r\n\r\n\r\n<p>I am the little elf who works at indiegala&nbsp;to bring many gifts to those who have been good ... ;-)</p>\r\n", "checkbox_1": 0, "checkbox_2": 0, "checkbox_3": 0, "checkbox_4": 0, "checkbox_5": 0, "checkbox_6": 1, "cover_img": "1585822003.png", "user_image": "1544691623.png", "other_text": "<iframe src=\"https://store.steampowered.com/widget/1874190/\" frameborder=\"0\" width=\"646\" height=\"190\"></iframe>", "email_link": "", "social_link_1": "https://www.indiegala.com", "social_link_2": "https://facebook.com/IndieGala", "social_link_3": "https://twitter.com/indiegala", "visibility_status": null, "meta_description": "indiegala indie gala, free games freebeis anime, indie, manga", "og_description": "Gala Freebies", "sdb_discussion_id": 5585, "newsletter_api_url": "", "mono_product": null}, "media_ref": {"id": 172, "video": "", "cover_img": "", "background": ""}, "references_ref": {"id": 172, "reference": ""}}, "id_key_name": "9ecbed96-4ff6-4d62-b78a-de0695b8c0e0", "name": "Steel Fury", "super_status": 1, "is_visible": null, "galaclient_only": 0, "galaclient_visible_only": 0, "adult_content": 0, "last_update": "2024-03-05T00:19:52.911333", "created": "05 Dec 2019", "release_date": null, "hide_add_to_library": 1, "description": "", "other_text": "", "slugged_name": "steel-fury", "sys_req": "", "show_indiegala_header": 1, "sell_type": 0, "community_type": 1, "discounted": null, "priceEUR": 0.0, "priceUSD": 0.0, "priceGBP": 0.0, "partner": null, "age_ratings": null, "qty_sold": 0, "product_views": 9707, "product_downloads": 0, "exe_path": null, "cwd": null, "args": null, "sdb_discussion_id": null, "token": "...", "token_created": "2024-03-05T00:19:52.911105", "release_mood": null, "project_class": null, "project_kind": null, "platforms": {"id": 4, "id_key_name": "4", "name": "Indiegala", "type": 2, "url": "https://www.indiegala.com/", "slugged_name": "indiegala", "icon_path": null}, "product_media_ref": {"id": 639, "main_img": "1604477401.png", "cover_img": "1604477414.png", "json_data": null, "custom_background_color": null, "custom_font_color": null, "custom_link_color": null, "theme_data": "{}", "theme": "{}", "youtube_best_video": "['https://www.youtube.com/embed/t93cf_kMN7Q', 'https://www.youtube.com/embed/DiHEn1D_FvE', 'https://www.youtube.com/embed/Y-RoZgY4BI8', 'https://www.youtube.com/embed/0ExIpeOzlcs', 'https://www.youtube.com/embed/LZE5JDeZKb8']", "youtube_best_video_date": "2022-12-11T00:24:11.826194"}, "categories": [], "tags": [{"id": 89, "id_key_name": null, "name": "", "slugged_name": "", "type": 1}], "os": [], "version": [], "rating": {"count": 3, "avg_rating": 3.6667, "voted": false}, "in_collection": false, "rating_to_display": ["s", "s", "s", "h", "e"], "downloadable_versions": null, "prod_slugged_name": "steel-fury", "media": [], "theme": {}, "specs": []}}
28-01 22:34:11.282|ERROR|IndiegalaLibrary#Common:Error on GetShowCaseDetails()|C:\Projects\C#\Lacro59\playnite-indiegala-plugin\source\Services\IndiegalaApi.cs|255
System.NullReferenceException: Object reference not set to an instance of an object.
   at IndiegalaLibrary.Services.IndiegalaApi.GetShowCaseDetails(GameMetadata gameMetadata, String prod_dev_namespace, String prod_slugged_name) in C:\Projects\C#\Lacro59\playnite-indiegala-plugin\source\Services\IndiegalaApi.cs:line 255
28-01 22:37:20.862|INFO |IndiegalaLibrary#IndiegalaLibrary:GetOwnedGames (420) - 03:48.34
28-01 22:37:24.636|INFO |IndiegalaLibrary#IndiegalaLibrary:Added: 4 - Already added: 416

The line reference in the logged exception doesn't seem to match the code at version 3.1:

int? communityScore = null;

@Terrance Terrance added the bug Something isn't working label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant