{"action":"created","issue":{"url":"https://api.github.com/repos/AEFeinstein/mtg-familiar/issues/278","repository_url":"https://api.github.com/repos/AEFeinstein/mtg-familiar","labels_url":"https://api.github.com/repos/AEFeinstein/mtg-familiar/issues/278/labels{/name}","comments_url":"https://api.github.com/repos/AEFeinstein/mtg-familiar/issues/278/comments","events_url":"https://api.github.com/repos/AEFeinstein/mtg-familiar/issues/278/events","html_url":"https://github.com/AEFeinstein/mtg-familiar/issues/278","id":267806545,"number":278,"title":"Errors in token fields during save defaults-clear-load defaults.","user":{"login":"MarcelBucz","id":26085472,"avatar_url":"https://avatars3.githubusercontent.com/u/26085472?v=4","gravatar_id":"","url":"https://api.github.com/users/MarcelBucz","html_url":"https://github.com/MarcelBucz","followers_url":"https://api.github.com/users/MarcelBucz/followers","following_url":"https://api.github.com/users/MarcelBucz/following{/other_user}","gists_url":"https://api.github.com/users/MarcelBucz/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcelBucz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcelBucz/subscriptions","organizations_url":"https://api.github.com/users/MarcelBucz/orgs","repos_url":"https://api.github.com/users/MarcelBucz/repos","events_url":"https://api.github.com/users/MarcelBucz/events{/privacy}","received_events_url":"https://api.github.com/users/MarcelBucz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-23T20:28:54Z","updated_at":"2017-10-23T20:32:27Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"During testing of #277, I ran into two related issues in ATokenTextView's (and child classes thereof) setObjectsFromString.\r\n1a) Enter \"(none) Artifact Basic\" in the supertype field.\r\n![image](https://user-images.githubusercontent.com/26085472/31911252-55503af2-b840-11e7-9d28-d2568b57fd1e.png)\r\n1b) Save defaults.\r\n1c) Clear all fields.\r\n1d) Load defaults - all text ends up in one token.\r\n![image](https://user-images.githubusercontent.com/26085472/31911328-94a8b6a2-b840-11e7-8adb-ea0ea159b467.png)\r\n\r\n2a) Enter \"W W W\" in the mana cost field.\r\n![image](https://user-images.githubusercontent.com/26085472/31911563-6cb8af7a-b841-11e7-9aff-8f1dc8a579bd.png)\r\n2b) Save defaults.\r\n2c) Clear all fields.\r\n2d) Load defaults - fatal error occurs (see stacktrace below, related to #268).\r\n\r\njava.util.regex.PatternSyntaxException: Syntax error in regexp pattern near index 1\r\n                                                 }\r\n                                                  ^\r\n                                                     at java.util.regex.Pattern.compileImpl(Native Method)\r\n                                                     at java.util.regex.Pattern.compile(Pattern.java:1340)\r\n                                                     at java.util.regex.Pattern.<init>(Pattern.java:1324)\r\n                                                     at java.util.regex.Pattern.compile(Pattern.java:946)\r\n                                                     at java.lang.String.split(String.java:2325)\r\n                                                     at java.lang.String.split(String.java:2367)\r\n                                                     at com.gelakinetic.mtgfam.helpers.view.ManaCostTextView.setObjectsFromString(ManaCostTextView.java:150)\r\n                                                     at com.gelakinetic.mtgfam.fragments.SearchViewFragment.fetchPersistedOptions(SearchViewFragment.java:897)\r\n                                                     at com.gelakinetic.mtgfam.fragments.SearchViewFragment.onOptionsItemSelected(SearchViewFragment.java:969)\r\n                                                     at android.support.v4.app.Fragment.performOptionsItemSelected(Fragment.java:2468)\r\n                                                     at android.support.v4.app.FragmentManagerImpl.dispatchOptionsItemSelected(FragmentManager.java:3307)\r\n                                                     at android.support.v4.app.FragmentController.dispatchOptionsItemSelected(FragmentController.java:344)\r\n                                                     at android.support.v4.app.FragmentActivity.onMenuItemSelected(FragmentActivity.java:367)\r\n                                                     at android.support.v7.app.AppCompatActivity.onMenuItemSelected(AppCompatActivity.java:195)\r\n                                                     at android.support.v7.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:108)\r\n                                                     at android.support.v7.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:108)\r\n                                                     at android.support.v7.app.ToolbarActionBar$2.onMenuItemClick(ToolbarActionBar.java:65)\r\n                                                     at android.support.v7.widget.Toolbar$1.onMenuItemClick(Toolbar.java:202)\r\n                                                     at android.support.v7.widget.ActionMenuView$MenuBuilderCallback.onMenuItemSelected(ActionMenuView.java:780)\r\n                                                     at android.support.v7.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:822)\r\n                                                     at android.support.v7.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:171)\r\n                                                     at android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:973)\r\n                                                     at android.support.v7.view.menu.MenuPopup.onItemClick(MenuPopup.java:127)\r\n                                                     at android.widget.AdapterView.performItemClick(AdapterView.java:310)\r\n                                                     at android.widget.AbsListView.performItemClick(AbsListView.java:1155)\r\n                                                     at android.widget.AbsListView$PerformClick.run(AbsListView.java:3120)\r\n                                                     at android.widget.AbsListView.onTouchUp(AbsListView.java:4047)\r\n                                                     at android.widget.AbsListView.onTouchEvent(AbsListView.java:3806)\r\n                                                     at android.support.v7.widget.ListViewCompat.onTouchEvent(ListViewCompat.java:124)\r\n                                                     at android.view.View.dispatchTouchEvent(View.java:9943)\r\n                                                     at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2663)\r\n                                                     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2344)\r\n                                                     at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2669)\r\n                                                     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2358)\r\n                                                     at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2669)\r\n                                                     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2358)\r\n                                                     at android.widget.PopupWindow$PopupDecorView.dispatchTouchEvent(PopupWindow.java:2266)\r\n                                                     at android.view.View.dispatchPointerEvent(View.java:10163)\r\n                                                     at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4434)\r\n                                                     at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4302)\r\n                                                     at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3849)\r\n                                                     at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3902)\r\n                                                     at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3868)\r\n                                                     at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3995)\r\n                                                     at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3876)\r\n                                                     at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4052)\r\n                                                     at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3849)\r\n                                                     at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3902)\r\n                                                     at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3868)\r\n10-23 20:14:45.085 3569-3569/? E/AndroidRuntime:     at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3876)\r\n                                                     at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3849)\r\n                                                     at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6210)\r\n                                                     at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6184)\r\n                                                     at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6145)\r\n                                                     at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6313)\r\n                                                     at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)\r\n                                                     at android.os.MessageQueue.nativePollOnce(Native Method)\r\n                                                     at android.os.MessageQueue.next(MessageQueue.java:323)\r\n                                                     at android.os.Looper.loop(Looper.java:136)\r\n                                                     at android.app.ActivityThread.main(ActivityThread.java:6077)\r\n                                                     at java.lang.reflect.Method.invoke(Native Method)\r\n                                                     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)\r\n                                                     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)\r\n"},"comment":{"url":"https://api.github.com/repos/AEFeinstein/mtg-familiar/issues/comments/338787525","html_url":"https://github.com/AEFeinstein/mtg-familiar/issues/278#issuecomment-338787525","issue_url":"https://api.github.com/repos/AEFeinstein/mtg-familiar/issues/278","id":338787525,"user":{"login":"AEFeinstein","id":231180,"avatar_url":"https://avatars0.githubusercontent.com/u/231180?v=4","gravatar_id":"","url":"https://api.github.com/users/AEFeinstein","html_url":"https://github.com/AEFeinstein","followers_url":"https://api.github.com/users/AEFeinstein/followers","following_url":"https://api.github.com/users/AEFeinstein/following{/other_user}","gists_url":"https://api.github.com/users/AEFeinstein/gists{/gist_id}","starred_url":"https://api.github.com/users/AEFeinstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AEFeinstein/subscriptions","organizations_url":"https://api.github.com/users/AEFeinstein/orgs","repos_url":"https://api.github.com/users/AEFeinstein/repos","events_url":"https://api.github.com/users/AEFeinstein/events{/privacy}","received_events_url":"https://api.github.com/users/AEFeinstein/received_events","type":"User","site_admin":false},"created_at":"2017-10-23T20:32:27Z","updated_at":"2017-10-23T20:32:27Z","author_association":"OWNER","body":"Verified, I'll look at this tonight. Once we're done, this token view will be _perfect_."}}
{"actor":{"display_login":"AEFeinstein"}}