{"action":"created","issue":{"url":"https://api.github.com/repos/casadi/casadi/issues/1345","labels_url":"https://api.github.com/repos/casadi/casadi/issues/1345/labels{/name}","comments_url":"https://api.github.com/repos/casadi/casadi/issues/1345/comments","events_url":"https://api.github.com/repos/casadi/casadi/issues/1345/events","html_url":"https://github.com/casadi/casadi/issues/1345","id":59097376,"number":1345,"title":"!isNull failure","user":{"login":"ghorn","id":375331,"avatar_url":"https://avatars.githubusercontent.com/u/375331?v=3","gravatar_id":"","url":"https://api.github.com/users/ghorn","html_url":"https://github.com/ghorn","followers_url":"https://api.github.com/users/ghorn/followers","following_url":"https://api.github.com/users/ghorn/following{/other_user}","gists_url":"https://api.github.com/users/ghorn/gists{/gist_id}","starred_url":"https://api.github.com/users/ghorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghorn/subscriptions","organizations_url":"https://api.github.com/users/ghorn/orgs","repos_url":"https://api.github.com/users/ghorn/repos","events_url":"https://api.github.com/users/ghorn/events{/privacy}","received_events_url":"https://api.github.com/users/ghorn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/casadi/casadi/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-26T16:25:30Z","updated_at":"2015-03-26T14:22:04Z","closed_at":null,"body":"here is a minimal example which fails on 2.2.0\r\n```python\r\nfrom casadi import *\r\n\r\nx = MX.sym('x',1,1)\r\nnlp = MXFunction(nlpIn(x=x),nlpOut(f=0))\r\nnlp.init()\r\n\r\nsolver = NlpSolver('ipopt', nlp)\r\nsolver.init()\r\n\r\njacG = solver.jacG()\r\njacG.setInput(0,'x')\r\n```\r\nRunning this gives:\r\n```\r\nghorn@deb-kerman:~/hslibs/dynobud (master)$ ipython examples/isnull.py \r\n---------------------------------------------------------------------------\r\nRuntimeError                              Traceback (most recent call last)\r\n/home/ghorn/hslibs/dynobud/examples/isnull.py in <module>()\r\n      9 \r\n     10 jacG = solver.jacG()\r\n---> 11 jacG.setInput(0,'x')\r\n     12 \r\n     13 \r\n\r\n/home/ghorn/casadi_install/casadi/casadi.pyc in setInput(self, *args)\r\n  19426 \r\n  19427         \"\"\"\r\n> 19428         return _casadi.IOInterfaceFunction_setInput(self, *args)\r\n  19429 \r\n  19430     def setOutput(self, *args):\r\n\r\nRuntimeError: The assertion \"!isNull()\" on line 107 of file \"/home/ghorn/casadi-2.2.0/casadi/core/shared_object.cpp\" failed. \r\nPlease notify the CasADi developers.\r\n```\r\nif you `print jacG` you get\r\n`Null pointer of class \"PKN6casadi12SharedObjectE\"`"},"comment":{"url":"https://api.github.com/repos/casadi/casadi/issues/comments/86537624","html_url":"https://github.com/casadi/casadi/issues/1345#issuecomment-86537624","issue_url":"https://api.github.com/repos/casadi/casadi/issues/1345","id":86537624,"user":{"login":"ghorn","id":375331,"avatar_url":"https://avatars.githubusercontent.com/u/375331?v=3","gravatar_id":"","url":"https://api.github.com/users/ghorn","html_url":"https://github.com/ghorn","followers_url":"https://api.github.com/users/ghorn/followers","following_url":"https://api.github.com/users/ghorn/following{/other_user}","gists_url":"https://api.github.com/users/ghorn/gists{/gist_id}","starred_url":"https://api.github.com/users/ghorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghorn/subscriptions","organizations_url":"https://api.github.com/users/ghorn/orgs","repos_url":"https://api.github.com/users/ghorn/repos","events_url":"https://api.github.com/users/ghorn/events{/privacy}","received_events_url":"https://api.github.com/users/ghorn/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T14:22:03Z","updated_at":"2015-03-26T14:22:03Z","body":"wasn't this fixed?"}}