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

ContainerHolderSingletonを触るところでNPE #6

Open
tsuyoyo opened this issue Jan 7, 2016 · 0 comments
Open

ContainerHolderSingletonを触るところでNPE #6

tsuyoyo opened this issue Jan 7, 2016 · 0 comments
Labels

Comments

@tsuyoyo
Copy link
Owner

tsuyoyo commented Jan 7, 2016

ContainerHolderSingleton.getContainerHolder()がNullになりうるのに、ほかのチェックをすり抜けてる

private int fetchSetlistAfterByHour() {
        int fetchPeriod = DEFAULT_FETCH_PERIOD_HOUR;
        ContainerHolder holder = ContainerHolderSingleton.getContainerHolder();
        if (null != holder) {
            Container container = holder.getContainer();
            String containerKey = getString(R.string.gtm_key_interval_song_update_by_hour);
            fetchPeriod = (int) container.getLong(containerKey);
        }
        return (0 < fetchPeriod) ? fetchPeriod : DEFAULT_FETCH_PERIOD_HOUR;
    }
@tsuyoyo tsuyoyo added the bug label Jan 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant