Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on opening articles containing '/' #7

Closed
morloy opened this issue Nov 25, 2014 · 3 comments
Closed

Crash on opening articles containing '/' #7

morloy opened this issue Nov 25, 2014 · 3 comments

Comments

@morloy
Copy link

morloy commented Nov 25, 2014

I recently compile wikivoyage for aard2. However, many articles for cities are divided in sub-articles for the districts seperated by a '/' in the name, e. g. 'Berlin/Mitte'.
Opening any article containing '/' crashes aard2.

Stacktrace:

1-25 12:33:05.383 I/ActivityManager(  624): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10304000 cmp=itkach.aard2/.MainActivity} from pid 958
11-25 12:33:05.513 I/ActivityManager(  624): Start proc itkach.aard2 for activity itkach.aard2/.MainActivity: pid=9850 uid=10145 gids={50145, 1028, 3003}
11-25 12:33:05.633 D/ActivityThread( 9850): handleBindApplication:itkach.aard2
11-25 12:33:05.793 D/itkach.aard2.Application( 9850): Started web server on port 8013 in 7 ms
11-25 12:33:06.093 D/itkach.aard2.SlobDescriptorList( 9850): beginUpdate
11-25 12:33:06.113 D/itkach.aard2.SlobDescriptorList( 9850): endUpdate, changed? true
11-25 12:33:07.383 I/ActivityManager(  624): Displayed itkach.aard2/.MainActivity: +1s880ms
11-25 12:33:07.393 I/Timeline(  624): Timeline: Activity_windows_visible id: ActivityRecord{424cff78 u0 itkach.aard2/.MainActivity t149} time:87267840
11-25 12:33:09.293 I/Timeline( 9850): Timeline: Activity_launch_request id:itkach.aard2 time:87269738
11-25 12:33:09.293 I/ActivityManager(  624): START u0 {cmp=itkach.aard2/.ArticleCollectionActivity (has extras)} from pid 9850
11-25 12:33:09.403 D/itkach.aard2.Application( 9850): Activity added, stack size 1
11-25 12:33:09.413 E/AndroidRuntime( 9850): Process: itkach.aard2, PID: 9850
11-25 12:33:09.413 E/AndroidRuntime( 9850): java.lang.RuntimeException: Unable to start activity ComponentInfo{itkach.aard2/itkach.aard2.ArticleCollectionActivity}: java.lang.NullPointerException
11-25 12:33:09.413 E/AndroidRuntime( 9850):     at itkach.aard2.Application.getSlobURI(Application.java:287)
11-25 12:33:09.413 E/AndroidRuntime( 9850):     at itkach.aard2.BlobDescriptorList.createDescriptor(BlobDescriptorList.java:216)
11-25 12:33:09.413 E/AndroidRuntime( 9850):     at itkach.aard2.BlobDescriptorList.add(BlobDescriptorList.java:222)
11-25 12:33:09.413 E/AndroidRuntime( 9850):     at itkach.aard2.ArticleCollectionActivity.updateTitle(ArticleCollectionActivity.java:233)
11-25 12:33:09.413 E/AndroidRuntime( 9850):     at itkach.aard2.ArticleCollectionActivity.access$000(ArticleCollectionActivity.java:49)
11-25 12:33:09.413 E/AndroidRuntime( 9850):     at itkach.aard2.ArticleCollectionActivity$2.onPageSelected(ArticleCollectionActivity.java:125)
11-25 12:33:09.413 E/AndroidRuntime( 9850):     at itkach.aard2.ArticleCollectionActivity.onCreate(ArticleCollectionActivity.java:135)
11-25 12:33:09.423 W/ActivityManager(  624):   Force finishing activity itkach.aard2/.ArticleCollectionActivity
11-25 12:33:09.423 W/ActivityManager(  624):   Force finishing activity itkach.aard2/.MainActivity
11-25 12:33:09.923 W/ActivityManager(  624): Activity pause timeout for ActivityRecord{424d3d48 u0 itkach.aard2/.ArticleCollectionActivity t149 f}
11-25 12:33:10.863 I/WindowState(  624): WIN DEATH: Window{42cf6420 u0 itkach.aard2/itkach.aard2.MainActivity}
11-25 12:33:10.863 I/ActivityManager(  624): Process itkach.aard2 (pid 9850) has died.
@itkach
Copy link
Owner

itkach commented Nov 25, 2014

Fixed in f492207, give it a try

@itkach itkach closed this as completed Nov 25, 2014
@morloy
Copy link
Author

morloy commented Nov 25, 2014

Yeah, great! Now crash anymore, thanks for the fast response!
However, it looks like the css style sheet in articles containing '/' isn't loaded.

_20141125_141349
_20141125_141431

@itkach
Copy link
Owner

itkach commented Nov 25, 2014

Indeed. I opened issue #8 for this, will fix later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants