public void カオス合成()
{
if(混沌の宝石材料.Slotid==0)
{ return; }
if (カオス合成材料.Slotid == 0)
{ return; }
if (カオス合成ベース.Slotid == 0)
{ return; }
int リザルト = CF.param.Find(x => x.Juwel == 混沌の宝石材料.Slotid && x.material == カオス合成材料.Slotid && x.Base == カオス合成ベース.Slotid).result;
if (リザルト!=0)
{
カオス合成材料.Slotid = 0;
カオス合成ベース.Slotid = 0;
混沌の宝石材料.Slotid = リザルト;
カオス合成材料.img.sprite = ItemSlot.itemIcon[0];
カオス合成ベース.img.sprite = ItemSlot.itemIcon[0];
混沌の宝石材料.img.sprite = ItemSlot.itemIcon[混沌の宝石材料.Slotid];
}
}


こんな感じのスクリプト書いてまふ(^^
ただこれだと合成結果が存在しない時(^^
ラムダ式書いてる行の部分が(^^
NullReferenceException: Object reference not set to an instance of an object吐きまふ(^^
どうすりゃいいのよ?(^^