File tree 1 file changed +6
-5
lines changed
src/com/magento/idea/magento2plugin/indexes
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 14
14
import com .magento .idea .magento2plugin .stubs .indexes .mftf .*;
15
15
import com .magento .idea .magento2plugin .stubs .indexes .xml .PhpClassNameIndex ;
16
16
17
- /**
18
- * Created by dkvashnin on 1/9/16.
19
- */
20
17
public class IndexManager {
21
18
public static void manualReindex () {
22
19
ID <?, ?>[] indexIds = new ID <?, ?>[] {
@@ -49,8 +46,12 @@ public static void manualReindex() {
49
46
};
50
47
51
48
for (ID <?, ?> id : indexIds ) {
52
- FileBasedIndexImpl .getInstance ().requestRebuild (id );
53
- FileBasedIndexImpl .getInstance ().scheduleRebuild (id , new Throwable ());
49
+ try {
50
+ FileBasedIndexImpl .getInstance ().requestRebuild (id );
51
+ FileBasedIndexImpl .getInstance ().scheduleRebuild (id , new Throwable ());
52
+ } catch (NullPointerException exception ) {
53
+ //that's fine, indexer is not present in map java.util.Map.get
54
+ }
54
55
}
55
56
}
56
57
}
You can’t perform that action at this time.
0 commit comments