File nm-dont-crash-when-system-secret-is-not-needed.patch of Package NetworkManager.4192

Index: NetworkManager-1.0.12/src/settings/nm-agent-manager.c
===================================================================
--- NetworkManager-1.0.12.orig/src/settings/nm-agent-manager.c
+++ NetworkManager-1.0.12/src/settings/nm-agent-manager.c
@@ -1047,6 +1047,9 @@ has_system_secrets (NMConnection *connec
 	if (setting_name != NULL || hints != NULL)
 		return has_system;
 
+	if (setting_name == NULL && hints == NULL)
+		return !has_system;
+
 	data.hash = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
 	for (i = 0; i < hints->len; i++) {
 		g_hash_table_insert (data.hash, g_strdup ((const char*)g_ptr_array_index(hints, i)), (void*)(long)1);