Search Unity

(Case 1115546) Nullreference in LinkXMLGenerator.cs

Discussion in 'Addressables' started by MNNoxMortem, Jan 25, 2019.

  1. MNNoxMortem

    MNNoxMortem

    Joined:
    Sep 11, 2016
    Posts:
    723
    Building Asset Bundles fails sometimes (and once happened -> always) because of nullreferences in LinkXMLGenerator.

    I am sure it is not a good sign that there are null types passed in in the first place but for anyone running into this bug replace \Library\PackageCache\com.unity.addressables@0.5.3-preview\Editor\Build\LinkXMLGenerator.cs

    with the attached version, which skips nulls.
     

    Attached Files:

  2. XRA

    XRA

    Joined:
    Aug 26, 2010
    Posts:
    265
    been having the same issue since 0.5.3 or so, (even on 0.7.4 now) I had to re-configure all my addressable assets recently due to the breaking changes when upgrading, but still get this null reference even after that.

    There are also new null references that should be checked for in LinkXMLGenerator.cs around line 16 and 27 where it calls AddTypeInternal(t)
     
    Last edited: Apr 26, 2019