Fixed AttributeError when calling get_app_data()
diff --git a/src/OpenSSL/SSL.py b/src/OpenSSL/SSL.py
index 190e4ac..0dbabc1 100644
--- a/src/OpenSSL/SSL.py
+++ b/src/OpenSSL/SSL.py
@@ -1083,6 +1083,7 @@
         ssl = _lib.SSL_new(context._context)
         self._ssl = _ffi.gc(ssl, _lib.SSL_free)
         self._context = context
+        self._app_data = None
 
         # References to strings used for Next Protocol Negotiation. OpenSSL's
         # header files suggest that these might get copied at some point, but
diff --git a/tests/test_ssl.py b/tests/test_ssl.py
index 92dff5f..de144ce 100644
--- a/tests/test_ssl.py
+++ b/tests/test_ssl.py
@@ -2401,9 +2401,10 @@
         :py:obj:`Connection.get_app_data`.
         """
         conn = Connection(Context(TLSv1_METHOD), None)
+        assert None is conn.get_app_data()
         app_data = object()
         conn.set_app_data(app_data)
-        self.assertIdentical(conn.get_app_data(), app_data)
+        assert conn.get_app_data() is app_data
 
     def test_makefile(self):
         """