{"action":"created","issue":{"url":"https://api.github.com/repos/rey5137/material/issues/229","labels_url":"https://api.github.com/repos/rey5137/material/issues/229/labels{/name}","comments_url":"https://api.github.com/repos/rey5137/material/issues/229/comments","events_url":"https://api.github.com/repos/rey5137/material/issues/229/events","html_url":"https://github.com/rey5137/material/issues/229","id":103258484,"number":229,"title":"endering Problems java.lang.NullPointerException   at com.rey.material.app.ThemeManager.registerOnThemeChangedListener","user":{"login":"humazed","id":8838182,"avatar_url":"https://avatars.githubusercontent.com/u/8838182?v=3","gravatar_id":"","url":"https://api.github.com/users/humazed","html_url":"https://github.com/humazed","followers_url":"https://api.github.com/users/humazed/followers","following_url":"https://api.github.com/users/humazed/following{/other_user}","gists_url":"https://api.github.com/users/humazed/gists{/gist_id}","starred_url":"https://api.github.com/users/humazed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humazed/subscriptions","organizations_url":"https://api.github.com/users/humazed/orgs","repos_url":"https://api.github.com/users/humazed/repos","events_url":"https://api.github.com/users/humazed/events{/privacy}","received_events_url":"https://api.github.com/users/humazed/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-26T12:43:46Z","updated_at":"2015-09-22T09:23:38Z","closed_at":null,"body":"When I try to see the demo app that you provided, I see that error when I try to open any layout.\r\nI didn't change anything in your code. and I try to rebuild but nothing work.\r\n\r\njava.lang.NullPointerException\r\n\tat com.rey.material.app.ThemeManager.registerOnThemeChangedListener(ThemeManager.java:181)\r\n\tat com.rey.material.widget.TextView.onAttachedToWindow(TextView.java:78)\r\n\tat android.view.View.dispatchAttachedToWindow(View.java:14514)\r\n\tat android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2843)\r\n\tat android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2843)\r\n\tat android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2843)\r\n\tat android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2843)\r\n\tat android.view.AttachInfo_Accessor.setAttachInfo(AttachInfo_Accessor.java:42)\r\n\tat com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:232)\r\n\tat com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:426)\r\n\tat com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:350)\r\n\tat com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:511)\r\n\tat com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:499)\r\n\tat com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:888)\r\n\tat com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:499)\r\n\tat com.android.tools.idea.rendering.RenderTask.access$600(RenderTask.java:72)\r\n\tat com.android.tools.idea.rendering.RenderTask$3.call(RenderTask.java:611)\r\n\tat com.android.tools.idea.rendering.RenderTask$3.call(RenderTask.java:608)\r\n\tat com.android.tools.idea.rendering.RenderService.runRenderAction(RenderService.java:365)\r\n\tat com.android.tools.idea.rendering.RenderTask.render(RenderTask.java:608)\r\n\tat com.android.tools.idea.rendering.RenderTask.render(RenderTask.java:630)\r\n\tat org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager.doRender(AndroidLayoutPreviewToolWindowManager.java:643)\r\n\tat org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager.access$1700(AndroidLayoutPreviewToolWindowManager.java:80)\r\n\tat org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager$7$1.run(AndroidLayoutPreviewToolWindowManager.java:585)\r\n\tat com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:152)\r\n\tat com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:452)\r\n\tat com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:402)\r\n\tat com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)\r\n\tat com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:137)\r\n\tat org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager$7.run(AndroidLayoutPreviewToolWindowManager.java:580)\r\n\tat com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:320)\r\n\tat com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:310)\r\n\tat com.intellij.util.ui.update.MergingUpdateQueue$2.run(MergingUpdateQueue.java:254)\r\n\tat com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:269)\r\n\tat com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:227)\r\n\tat com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:217)\r\n\tat com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)\r\n\tat com.intellij.util.Alarm$Request$1.run(Alarm.java:351)\r\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n"},"comment":{"url":"https://api.github.com/repos/rey5137/material/issues/comments/142224454","html_url":"https://github.com/rey5137/material/issues/229#issuecomment-142224454","issue_url":"https://api.github.com/repos/rey5137/material/issues/229","id":142224454,"user":{"login":"saeed-zh","id":13766432,"avatar_url":"https://avatars.githubusercontent.com/u/13766432?v=3","gravatar_id":"","url":"https://api.github.com/users/saeed-zh","html_url":"https://github.com/saeed-zh","followers_url":"https://api.github.com/users/saeed-zh/followers","following_url":"https://api.github.com/users/saeed-zh/following{/other_user}","gists_url":"https://api.github.com/users/saeed-zh/gists{/gist_id}","starred_url":"https://api.github.com/users/saeed-zh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saeed-zh/subscriptions","organizations_url":"https://api.github.com/users/saeed-zh/orgs","repos_url":"https://api.github.com/users/saeed-zh/repos","events_url":"https://api.github.com/users/saeed-zh/events{/privacy}","received_events_url":"https://api.github.com/users/saeed-zh/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T09:23:38Z","updated_at":"2015-09-22T09:23:38Z","body":"@brunano21 \r\nis that you mean I must put this command in every Activity class?\r\nI put this in one of my class that extends from \"Application\". till two days ago everything is fine but now i got this error. I didn't change anything too."}}