When using the 5.7 version of the plugin, there's a crash if the user doesn't specify a LayerInfo directory, or if the number of weightmaps aren't the same as the number of layers in the material. This is because at line 1007 it tries to access MaterialImportLayers[i], but ImportWeightmaps was false (due to the conditions in line 843) and so MaterialImportLayers was never filled in and is empty.