C# Object reference not set to an instance of an object MySQL error
I'm having a this error thrown almost randomly, and i'm not sure why.  It happens maybe 1/200 times.  This is a C# console application.  Any help or advice would be awesome!  Thanks!

    public static void Rollingupdate()
        {

            if (newListing.Count > 0)
            {
                try
                {
                    string BeginLine = "insert into live" + StaticStringClass.tableID + "\n" + mysqlColumnString + "\n" + "VALUES" + "\n";

                    string output = string.Join("", newCarListing);

    //ERROR OCCURS HERE
                    MySQLProcessor.MySQLInsertUpdate(BeginLine + output.TrimEnd('\n', ','));

                    newListing = null;

                    newListing = new HashSet<string>();
                }
                catch (Exception ex)
                {
                    string messageString = "Could not place " + StaticStringClass.tableID + " because of error:  " + ex.Message.ToString();
                    LoggingClass.GenericLogging(messageString);

                }

            }


        }


     public static void MySQLInsertUpdate(string MySQLCommand)
        {
            try
            {
                MySqlCommand MySQLCommandFunc = new MySqlCommand(MySQLCommand, Connection);
                MySQLCommandFunc.CommandTimeout = 240000;
                MySQLCommandFunc.ExecuteNonQuery();
            }
            catch(Exception ex)
            {
                if(Directory.Exists(@"C:\sqlDebug"))
                {

                }
                else
                {

                    Directory.CreateDirectory(@"C:\sqlDebug");
                }
                DateTime dt = DateTime.Now;
                string dateSQLstamp = dt.ToString("yyy-MM-dd-mm-ss");
                string errorString = string.Empty;
                errorString = ex.Message.ToString();
                File.AppendAllText(@"C:\sqlDebug" + "\\" + dateSQLstamp, ex.Message.ToString() +" " + ex.InnerException.ToString()+ "\n\n\n" + MySQLCommand);
                string messageString = "Could not execute query for Crawler:  " + StaticStringClass.crawlerID+" because of error: " + ex.Message.ToString();
                LoggingClass.GenericLogging(messageString);


            }
            
        }
C# Object reference not set to an instance of an object MySQL error
===

I'm having a this error thrown almost randomly, and i'm not sure why.  It happens maybe 1/200 times.  This is a C# console application.  Any help or advice would be awesome!  Thanks!

    public static void Rollingupdate()
        {

            if (newListing.Count > 0)
            {
                try
                {
                    string BeginLine = "insert into live" + StaticStringClass.tableID + "\n" + mysqlColumnString + "\n" + "VALUES" + "\n";

                    string output = string.Join("", newCarListing);

    //ERROR OCCURS HERE
                    MySQLProcessor.MySQLInsertUpdate(BeginLine + output.TrimEnd('\n', ','));

                    newListing = null;

                    newListing = new HashSet<string>();
                }
                catch (Exception ex)
                {
                    string messageString = "Could not place " + StaticStringClass.tableID + " because of error:  " + ex.Message.ToString();
                    LoggingClass.GenericLogging(messageString);

                }

            }


        }


     public static void MySQLInsertUpdate(string MySQLCommand)
        {
            try
            {
                MySqlCommand MySQLCommandFunc = new MySqlCommand(MySQLCommand, Connection);
                MySQLCommandFunc.CommandTimeout = 240000;
                MySQLCommandFunc.ExecuteNonQuery();
            }
            catch(Exception ex)
            {
                if(Directory.Exists(@"C:\sqlDebug"))
                {

                }
                else
                {

                    Directory.CreateDirectory(@"C:\sqlDebug");
                }
                DateTime dt = DateTime.Now;
                string dateSQLstamp = dt.ToString("yyy-MM-dd-mm-ss");
                string errorString = string.Empty;
                errorString = ex.Message.ToString();
                File.AppendAllText(@"C:\sqlDebug" + "\\" + dateSQLstamp, ex.Message.ToString() +" " + ex.InnerException.ToString()+ "\n\n\n" + MySQLCommand);
                string messageString = "Could not execute query for Crawler:  " + StaticStringClass.crawlerID+" because of error: " + ex.Message.ToString();
                LoggingClass.GenericLogging(messageString);


            }
            
        }