Skip to content

NullReferenceException on Unity 2017 iOS #704

@haswalt

Description

@haswalt

Expected Behavior

Should be able to initialise the AWS SDK and perform web requests

Current Behavior

NullReferenceException: A null value was found where an object instance was required.
  at Amazon.Runtime.Internal.UnityWebRequestWrapper..ctor () [0x00000] in <filename unknown>:0 
  at Amazon.AWSConfigs.set_HttpClient (HttpClientOption value) [0x00000] in <filename unknown>:0 
  at DownloadManager.Init () [0x00000] in <filename unknown>:0 
  at DownloadManager.get_instance () [0x00000] in <filename unknown>:0 
  at DownloadManager.Update () [0x00000] in <filename unknown>:0 
Rethrow as TypeInitializationException: The type initializer for 'Amazon.Runtime.Internal.UnityWebRequestWrapper' threw an exception.
  at Amazon.AWSConfigs.set_HttpClient (HttpClientOption value) [0x00000] in <filename unknown>:0 
  at DownloadManager.Init () [0x00000] in <filename unknown>:0 
  at DownloadManager.get_instance () [0x00000] in <filename unknown>:0 
  at DownloadManager.Update () [0x00000] in <filename unknown>:0 

Possible Solution

Steps to Reproduce (for bugs)

Create a simple scene and attach the AWS initialiser

Context

SDK is unusable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions