Search Unity

NullReferenceException on constructing a LocalizedString

Discussion in 'Localization Tools' started by tomtanak, Dec 13, 2021.

  1. tomtanak

    tomtanak

    Joined:
    Mar 24, 2020
    Posts:
    30
    Hi,
    In Localization Ver. 1.0.5, NullReferenceException occurs on constructing a LocalizedString with its arguments from scripts.
    It seems to be because TableReference.Equals and TableEntryReference.Equals don't check whether their 'other' argument is null.
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,282
    Hi could you please file a bug report?
     
  3. tomtanak

    tomtanak

    Joined:
    Mar 24, 2020
    Posts:
    30
    Hi,
    Sorry but the bug report function is difficult to use because it makes us send logs and directory structures that contain sensitive information.
    Looking into the source files, the issue seems to be purely an implementation problem of the Localization package and not related to the environment or other packages, but if there is any other information you need, I will provide it.
     
  4. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,282
    Could you provide some steps I can do to reproduce the issue?
     
  5. tomtanak

    tomtanak

    Joined:
    Mar 24, 2020
    Posts:
    30
    Hi,
    I could not reproduce the problem when I tried to create a reproduction sample, and the original implementation doesn't cause the problem anymore today.
    Though I thought it was a simple implementation problem because I misunderstood that TableReference and TableEntryReference are classes, in fact they are structures and seems to be fine too.
    I withdraw the report for now.
    I apologize for the annoyance.
    Thank you.
     
    karl_jones likes this.